Add missing branch tests

This commit is contained in:
Gary Gregory 2024-03-16 07:42:56 -04:00
parent 134d6d881e
commit da5a9c2523
1 changed files with 3 additions and 0 deletions

View File

@ -1139,6 +1139,7 @@ public class EqualsBuilderTest extends AbstractLangTest {
final TestObject o2 = new TestObject(5);
assertTrue(new EqualsBuilder().reflectionAppend(o1, o1).build());
assertFalse(new EqualsBuilder().reflectionAppend(o1, o2).build());
assertFalse(new EqualsBuilder().reflectionAppend(o1, o2).reflectionAppend(o1, o1).build());
o2.setA(4);
assertTrue(new EqualsBuilder().reflectionAppend(o1, o2).build());
@ -1413,6 +1414,8 @@ public class EqualsBuilderTest extends AbstractLangTest {
assertFalse(new EqualsBuilder().appendSuper(false).append(o1, o1).isEquals());
assertFalse(new EqualsBuilder().appendSuper(true).append(o1, o2).isEquals());
assertFalse(new EqualsBuilder().appendSuper(false).append(o1, o2).isEquals());
assertFalse(new EqualsBuilder().appendSuper(false).append(o1, o2).isEquals());
assertFalse(new EqualsBuilder().append(o1, o2).appendSuper(false).isEquals());
}
@Test