コード例 #1
0
 @Test
 public void testParseInnerClass() {
   List<Map<String, Object>> list = ObjectToPatchMap.parseFreshObject(ado);
   System.out.println(list);
   assertEquals(5, list.size());
   assertTrue(listOfMapContains(list, "path", "/enterpriserole/affiliation"));
   assertTrue(listContainsMap(list, "/enterpriserole/affiliation", "REGULAR"));
 }
コード例 #2
0
 @Test
 public void testRemovedInnerClass() {
   List<Map<String, Object>> list = ObjectToPatchMap.parseByComparingObjects(ado, ado3);
   System.out.println(list);
   assertTrue(listOfMapContains(list, "path", "/enterpriserole/affiliation"));
 }
コード例 #3
0
 @Test
 public void testCompareInnerClassField() {
   List<Map<String, Object>> list = ObjectToPatchMap.parseByComparingObjects(ado, ado2);
   System.out.println(list);
   assertTrue(listContainsMap(list, "/enterpriserole/affiliation", "NONE"));
 }
コード例 #4
0
 @Test
 public void testCompareField() {
   List<Map<String, Object>> list = ObjectToPatchMap.parseByComparingObjects(ado, ado2);
   System.out.println(list);
   assertTrue(listContainsMap(list, "/givenName", "Hell"));
 }
コード例 #5
0
 @Test
 public void testJsonIgnore() {
   List<Map<String, Object>> list = ObjectToPatchMap.parseFreshObject(ado);
   assertFalse(listOfMapContains(list, "path", "/dispositionStep"));
 }