Skip to content

Commit

Permalink
compare 0th element ie Trace (exclude stamp)
Browse files Browse the repository at this point in the history
Signed-off-by: Sally MacFarlane <[email protected]>
  • Loading branch information
macfarla committed Apr 27, 2023
1 parent ea1714a commit 544e008
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ private void traceOperation(final URL specFile) throws IOException {
final JsonNode expectedTrace = specNode.get("output");
final JsonNode actualTrace = generateTrace(getModuleTracer().jsonKey(), request);

assertThat(MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(actualTrace))
.isEqualTo(MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(expectedTrace));
assertThat(MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(actualTrace.get(0)))
.isEqualTo(
MAPPER.writerWithDefaultPrettyPrinter().writeValueAsString(expectedTrace.get(0)));
}

private JsonNode generateTrace(String moduleName, JsonNode jsonNodeParams)
Expand Down

0 comments on commit 544e008

Please sign in to comment.