Created
December 11, 2018 20:44
-
-
Save haigopi/1b4451e5f75aab9593de14b67053e38b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Slf4j | |
public class FluxTest { | |
@Test | |
public void test() { | |
Flux<String> b = Flux.just("Bob cat", "is in the ", "party").delayElements(Duration.ofSeconds(2)); | |
Flux.first(b) | |
.toIterable() | |
.forEach(log::info); | |
} | |
} | |
//14:43:31.455 [main] INFO com.capitalone.fs.marketingone.FluxTest - Bob cat | |
//14:43:33.460 [main] INFO com.capitalone.fs.marketingone.FluxTest - is in the | |
//14:43:35.463 [main] INFO com.capitalone.fs.marketingone.FluxTest - party |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
why not testing with StepVerifier ?