Skip to content

Commit e2b7e62

Browse files
BAEL-3806 fixed integration test
1 parent 92f61ce commit e2b7e62

1 file changed

Lines changed: 3 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
}

0 commit comments

Comments
 (0)