Medium Testing Reactive Code
Verify Error Signals
Traducción al español en progresoEl contenido detallado de esta lección aún se está traduciendo. Mientras tanto, se muestra en inglés.
Write a StepVerifier test for a Flux that emits "OK" then throws an IllegalStateException("Boom"). Verify the element, then verify the error. Print "Error test passed!".
expectError() verifies that the stream terminates with an error.
Esperado
Error test passed!
Main.kt