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}
Original file line number Diff line number Diff line change 77
88import com .baeldung .debugging .consumer .service .FooService ;
99
10+ /**
11+ * In order to run this live test, start the following classes:
12+ * - com.baeldung.debugging.server.ServerDebuggingApplication
13+ * - com.baeldung.debugging.consumer.ConsumerDebuggingApplication
14+ */
1015public class ConsumerFooServiceLiveTest {
1116
1217 FooService service = new FooService ();
You can’t perform that action at this time.
0 commit comments