Skip to content

Commit

Permalink
#5: fixed assertLogMessage (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzLanger authored Sep 29, 2023
1 parent df675ab commit 97078e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected static void assertLogMessage(IdeContext context, IdeLogLevel level, St
*/
protected static void assertLogMessage(IdeContext context, IdeLogLevel level, String message, boolean contains) {

IdeTestLogger logger = (IdeTestLogger) context.level(IdeLogLevel.WARNING);
IdeTestLogger logger = (IdeTestLogger) context.level(level);
ListAssert<String> assertion = assertThat(logger.getMessages()).as(level.name() + "-Log messages");
if (contains) {
Condition<String> condition = new Condition<>() {
Expand Down

0 comments on commit 97078e0

Please sign in to comment.