Skip to content

Commit c0f61d0

Browse files
authored
Merge pull request #8879 from mathieufortin01/BAEL-3806
BAEL-3806 Fixed integration test
2 parents b5fb4b4 + cb38981 commit c0f61d0

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

spring-5-reactive-2/src/test/java/com/baeldung/debugging/consumer/ConsumerFooServiceIntegrationTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

spring-5-reactive-2/src/test/java/com/baeldung/debugging/consumer/ConsumerFooServiceLiveTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
import 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+
*/
1015
public class ConsumerFooServiceLiveTest {
1116

1217
FooService service = new FooService();

0 commit comments

Comments
 (0)