Merge pull request #8879 from mathieufortin01/BAEL-3806
BAEL-3806 Fixed integration test
This commit is contained in:
commit
c0f61d0167
|
@ -52,14 +52,13 @@ public class ConsumerFooServiceIntegrationTest {
|
|||
.map(Arrays::stream)
|
||||
.orElse(Stream.empty());
|
||||
})
|
||||
.map(IThrowableProxy::getMessage)
|
||||
.map(IThrowableProxy::getClassName)
|
||||
.collect(Collectors.toList());
|
||||
assertThat(allLoggedEntries).anyMatch(entry -> entry.contains("The following error happened on processFoo method!"))
|
||||
.anyMatch(entry -> entry.contains("| onSubscribe"))
|
||||
.anyMatch(entry -> entry.contains("| cancel()"));
|
||||
|
||||
assertThat(allSuppressedEntries).anyMatch(entry -> entry.contains("Assembly trace from producer"))
|
||||
.anyMatch(entry -> entry.contains("Error has been observed by the following operator(s)"));
|
||||
assertThat(allSuppressedEntries)
|
||||
.anyMatch(entry -> entry.contains("reactor.core.publisher.FluxOnAssembly$OnAssemblyException"));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -7,6 +7,11 @@ import org.springframework.test.web.reactive.server.WebTestClient.ResponseSpec;
|
|||
|
||||
import com.baeldung.debugging.consumer.service.FooService;
|
||||
|
||||
/**
|
||||
* In order to run this live test, start the following classes:
|
||||
* - com.baeldung.debugging.server.ServerDebuggingApplication
|
||||
* - com.baeldung.debugging.consumer.ConsumerDebuggingApplication
|
||||
*/
|
||||
public class ConsumerFooServiceLiveTest {
|
||||
|
||||
FooService service = new FooService();
|
||||
|
|
Loading…
Reference in New Issue