*/
package org.opendaylight.yangtools.util;
+import static org.junit.Assert.assertTrue;
+
import com.google.common.base.MoreObjects;
import com.google.common.testing.EqualsTester;
import java.util.Objects;
public class EvenMoreObjectsTest {
@Test
- public void test() {
+ public void thingPassesEqualsTester() {
new EqualsTester()
.addEqualityGroup(new Thing("hello", 123), new Thing("hello", 123))
.addEqualityGroup(new Thing("hoi", 123), new Thing("hoi", 123))
.testEquals();
}
- static class Thing {
+ @Test
+ public void nullEqualsNull() {
+ assertTrue(EvenMoreObjects.equalsHelper(null, null, (one, another) -> true));
+ }
+
+ private static class Thing {
String name;
Integer age;