File tree Expand file tree Collapse file tree
spring-5-reactive-2/src/test/java/com/baeldung/debugging/consumer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,14 +52,13 @@ public void givenFooWithNullId_whenProcessFoo_thenLogsWithDebugTrace() {
5252 .map (Arrays ::stream )
5353 .orElse (Stream .empty ());
5454 })
55- .map (IThrowableProxy ::getMessage )
55+ .map (IThrowableProxy ::getClassName )
5656 .collect (Collectors .toList ());
5757 assertThat (allLoggedEntries ).anyMatch (entry -> entry .contains ("The following error happened on processFoo method!" ))
5858 .anyMatch (entry -> entry .contains ("| onSubscribe" ))
5959 .anyMatch (entry -> entry .contains ("| cancel()" ));
6060
61- assertThat (allSuppressedEntries ). anyMatch ( entry -> entry . contains ( "Assembly trace from producer" ))
62- .anyMatch (entry -> entry .contains ("Error has been observed by the following operator(s) " ));
61+ assertThat (allSuppressedEntries )
62+ .anyMatch (entry -> entry .contains ("reactor.core.publisher.FluxOnAssembly$OnAssemblyException " ));
6363 }
64-
6564}
You can’t perform that action at this time.
0 commit comments