use of org.assertj.core.internal.objects.Objects_assertIsEqualToIgnoringGivenFields_Test.OuterClass.InnerClass in project assertj-core by joel-costigliola.
the class Objects_assertIsEqualToIgnoringGivenFields_Test method should_pass_when_class_has_synthetic_field.
@Test
public void should_pass_when_class_has_synthetic_field() {
InnerClass actual = new OuterClass().createInnerClass();
InnerClass other = new OuterClass().createInnerClass();
// ensure that the compiler has generated at one synthetic field for the comparison
assertThat(InnerClass.class.getDeclaredFields()).extracting("synthetic").contains(Boolean.TRUE);
objects.assertIsEqualToIgnoringGivenFields(someInfo(), actual, other, noFieldComparators(), defaultTypeComparators());
}
Aggregations