@Test public void unnestedValue() throws Exception { doReturn(TextNode.valueOf("bar")).when(obfuscator).apply(TextNode.valueOf("foo")); JsonNode result = underTest.transform(f1Unnested, singletonList("/f1")); assertThat(result, is(mapper.createObjectNode().put("f1", "bar"))); }
public JsonNode transform(JsonNode jsonNode, List<String> pointers) { pointers.forEach(p -> transform(jsonNode, p.replaceAll(UNION_PATTERN, "/"))); return jsonNode; }
JsonNodeTransformer { public JsonNode transform(JsonNode jsonNode, List<String> pointers) { pointers.forEach(p -> transform(jsonNode, p.replaceAll(UNION_PATTERN, "/"))); return jsonNode; } }
JsonNodeTransformer { public JsonNode transform(JsonNode jsonNode, List<String> pointers) { pointers.forEach(p -> transform(jsonNode, p.replaceAll(UNION_PATTERN, "/"))); return jsonNode; }  }
JsonNodeTransformer { public JsonNode transform(JsonNode jsonNode, List<String> pointers) { pointers.forEach(p -> transform(jsonNode, p.replaceAll(UNION_PATTERN, "/"))); return jsonNode; }  JsonNode transform(JsonNode jsonNode, List<String> pointers); }
JsonNodeTransformer { public JsonNode transform(JsonNode jsonNode, List<String> pointers) { pointers.forEach(p -> transform(jsonNode, p.replaceAll(UNION_PATTERN, "/"))); return jsonNode; }  JsonNode transform(JsonNode jsonNode, List<String> pointers);  }