/** Test for two different enum values */ public void testGetDifference_notEqualsDifferentValues() { Difference result = reflectionComparator.getDifference(enumsA, enumsDifferentValue); assertNotNull(result); Difference difference = getInnerDifference("testEnumValue", result); assertEquals(Enums.TestEnum.TEST1, difference.getLeftValue()); assertEquals(Enums.TestEnum.TEST2, difference.getRightValue()); }
/** Test for two different dates. */ public void testGetDifference_notEqualsDifferentValues() { Difference result = reflectionComparator.getDifference(dateA, differentDate); assertEquals(dateA, result.getLeftValue()); assertEquals(differentDate, result.getRightValue()); }
/** Test for two equal dates but of different type. */ public void testGetDifference_sqlDate() { Difference result = reflectionComparator.getDifference(dateA, sqlDate); assertNull(result); }
/** Test for two equal dates. */ public void testGetDifference_equals() { Difference result = reflectionComparator.getDifference(dateA, dateB); assertNull(result); }