Skip to content

Commit

Permalink
#507: fixed mistakes from #509
Browse files Browse the repository at this point in the history
  • Loading branch information
hohwille committed Aug 5, 2024
1 parent 5fd84df commit 963458e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ private void fulfillsPredicate(Predicate<IdeLogEntry> predicate, PredicateMode m
}
}
}
Assertions.fail(errorMessage); // no log entry matched by predicate
if (mode == PredicateMode.MATCH_ONE) {
Assertions.fail(errorMessage); // no log entry matched by predicate
}
}

}
4 changes: 2 additions & 2 deletions cli/src/test/java/com/devonfw/tools/ide/step/StepTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public void testValidUsageSuccessSilent() {
assertThat(step.getParameter(1)).isEqualTo("arg2");
assertThat(step.getParameter(2)).isNull();
assertThat(context).log().hasEntries(IdeLogEntry.ofTrace("Starting step Test-Step with params [arg1, arg2]..."),
IdeLogEntry.ofStep("Start: Test-Step"),
IdeLogEntry.ofSuccess("Test-Step"),
IdeLogEntry.ofDebug("Step 'Test-Step' ended successfully."));
assertThat(context).log().hasNoMessage("Start: Test-Step");
assertThat(context).log().hasNoMessage("Test-Step");
}

@Test
Expand Down

0 comments on commit 963458e

Please sign in to comment.