@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")); }
@Test public void testRemovedInnerClass() { List<Map<String, Object>> list = ObjectToPatchMap.parseByComparingObjects(ado, ado3); System.out.println(list); assertTrue(listOfMapContains(list, "path", "/enterpriserole/affiliation")); }
@Test public void testCompareInnerClassField() { List<Map<String, Object>> list = ObjectToPatchMap.parseByComparingObjects(ado, ado2); System.out.println(list); assertTrue(listContainsMap(list, "/enterpriserole/affiliation", "NONE")); }
@Test public void testCompareField() { List<Map<String, Object>> list = ObjectToPatchMap.parseByComparingObjects(ado, ado2); System.out.println(list); assertTrue(listContainsMap(list, "/givenName", "Hell")); }
@Test public void testJsonIgnore() { List<Map<String, Object>> list = ObjectToPatchMap.parseFreshObject(ado); assertFalse(listOfMapContains(list, "path", "/dispositionStep")); }