Skip to content

Commit

Permalink
Add Assertion that helps to check the exact elements
Browse files Browse the repository at this point in the history
  • Loading branch information
vasireddy99 committed Oct 10, 2023
1 parent b901593 commit 0c982cb
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void validateLogs(String testLogStreamName, String logFilePath) throws Exception

//Validate body field in JSON-messageToValidate with actual log line from the log file.
assertThat(messageToValidate.containsAll(lines)).isTrue();
assertThat(messageToValidate).containsExactlyInAnyOrderElementsOf(lines);
return null;
});
}
Expand Down

0 comments on commit 0c982cb

Please sign in to comment.