@Test void shouldSeeActualSource() throws JsonProcessingException { Diff diff = Diff.create("{\"test\": \"1\"}", "{}", "", "", commonConfig()); diff.similar(); assertThat(new ObjectMapper().writeValueAsString(listener.getContext().getActualSource())).isEqualTo("{}"); }
public DifferenceContext getContext() { return context; }
JsonPatchListener implements DifferenceListener { public DifferenceContext getContext() { return context; } }
JsonPatchListener implements DifferenceListener { public DifferenceContext getContext() { return context; }  }
JsonPatchListener implements DifferenceListener { public DifferenceContext getContext() { return context; }  @Override void diff(final Difference difference, final DifferenceContext differenceContext); List<Difference> getDifferences(); DifferenceContext getContext(); DiffModel getDiffModel(); @SuppressWarnings({"all", "unchecked"}) String getJsonPatch(); }
JsonPatchListener implements DifferenceListener { public DifferenceContext getContext() { return context; }  @Override void diff(final Difference difference, final DifferenceContext differenceContext); List<Difference> getDifferences(); DifferenceContext getContext(); DiffModel getDiffModel(); @SuppressWarnings({"all", "unchecked"}) String getJsonPatch();  }