コード例 #1
0
 @Test
 public void testCompareMaps_NullSecondMap() throws Exception {
   Map map = new HashMap();
   assertTrue(
       COMPARATOR_HELPER.testComparatorResult(
           Constants.Comparator.PRIORITY_SECOND, entity.compareMaps(map, null)));
 }
コード例 #2
0
 @Test
 public void testCompareMaps_NullFirstMap() throws Exception {
   Map map = new HashMap();
   assertTrue(
       COMPARATOR_HELPER.testComparatorResult(
           Constants.Comparator.PRIORITY_FIRST, entity.compareMaps(null, map)));
 }
コード例 #3
0
 @Test
 public void testCompare_NullSecondCollection() throws Exception {
   Collection collection = new ArrayList();
   assertTrue(
       COMPARATOR_HELPER.testComparatorResult(
           Constants.Comparator.PRIORITY_SECOND, entity.compare(collection, null)));
 }
コード例 #4
0
 @Test
 public void testCompare_NullFirstCollection() throws Exception {
   Collection collection = new ArrayList();
   assertTrue(
       COMPARATOR_HELPER.testComparatorResult(
           Constants.Comparator.PRIORITY_FIRST, entity.compare(null, collection)));
 }
コード例 #5
0
 @Test
 public void testCompareMaps_NullBothMaps() throws Exception {
   assertTrue(
       COMPARATOR_HELPER.testComparatorResult(
           Constants.Comparator.EQUALS, entity.compareMaps(null, null)));
 }