Skip to content

Commit

Permalink
Polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrannen committed Sep 23, 2017
1 parent 94e5762 commit 5c18778
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ void testAndRepeatedTest(LogRecordListener listener) {
.filter(logRecord -> logRecord.getLevel() == Level.WARNING)
.map(LogRecord::getMessage)
.filter(m -> m.matches("Possible configuration error: method .+ resulted in multiple TestDescriptors .+"))
.findAny()
).isPresent();
.count()
).isEqualTo(1);
// @formatter:on
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ void logsWarningOnNonFilterableRunner(LogRecordListener listener) {
.filter(m -> m.equals("Runner " + IgnoredClassRunner.class.getName() //
+ " (used on " + testClass.getName() + ") does not support filtering" //
+ " and will therefore be run completely."))
.findAny()
).isPresent();
.count()
).isEqualTo(1);
// @formatter:on
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ void logsWarningWhenFilterExcludesClass(LogRecordListener listener) {
.filter(logRecord -> logRecord.getLevel() == Level.FINE)
.map(LogRecord::getMessage)
.filter(m -> m.equals("Class " + Bar.class.getName() + " was excluded by a class filter: no match"))
.findAny()
).isPresent();
.count()
).isEqualTo(1);
// @formatter:on

}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ void returnsDisplayNameWhenUniqueIdCannotBeRead(LogRecordListener listener) {
.map(LogRecord::getMessage)
.filter(m -> m.equals("Could not read unique ID for Description; using display name instead: "
+ description.getDisplayName()))
.findAny()
).isPresent();
.count()
).isEqualTo(1);
// @formatter:on
}

Expand Down

0 comments on commit 5c18778

Please sign in to comment.