| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Main already treats different types as unequal under withStrictTypeChecking; add regression tests for the superclass-vs-subtype case from assertj#4263 and align the javadoc with that behavior.
|
Thanks for the PR, @tanvir-ux! FYI, it might take some time before we get to it, as we'll first finalize the scope of 3.28.0 and 4.0.0-M2. |
Sorry, something went wrong.
✅ All tests passed ✅🏷️ Commit: e1c6080 Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
withStrictTypeChecking() used to treat a subtype expected value as compatible with a supertype actual value, so extra fields on the subtype were skipped. Main already fails the comparison when types differ (typesDiffer); this PR covers that case and updates the javadoc, which still described the old subtype-compatible behavior.
isEqualTo now fails (and isNotEqualTo passes) for Person vs Giant in both directions, including a nested field, with both introspection strategies.
Fixes #4263
Check List: