Skip to content

Commit

Permalink
Fix Table test
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Dec 21, 2023
1 parent b5e86bb commit 49a76fe
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ public void test_table_parameters_reporting() {
List<StartTestItemRQ> items = captor.getAllValues();
assertThat(items, hasSize(2));

Map<String, SaveLogRQ> logs = logCaptor
List<SaveLogRQ> logs = logCaptor
.getAllValues().
stream()
.flatMap(rq -> extractJsonParts((List<MultipartBody.Part>) rq).stream())
.filter(rq -> LogLevel.INFO.name().equals(rq.getLevel()))
.collect(Collectors.toMap(SaveLogRQ::getItemUuid, v -> v));
assertThat(logs.get(stepIds.get(2)).getMessage(), startsWith("Table:\n\n"));
.collect(Collectors.toList());
assertThat(logs, hasSize(1));
assertThat(logs.get(0).getMessage(), startsWith("Table:\n\n"));
}
}

0 comments on commit 49a76fe

Please sign in to comment.