#266 - Refactor reactive tests to use StepVerifier and test methods.

We now use StepVerifier and RxJava's .test() methods instead of .block() calls. Using blocking methods is an anti pattern which should be avoided within tests. Test API comes with timeouts and protects tests from never completing.
This commit is contained in:
Mark Paluch
2017-11-30 18:01:52 -08:00
parent a2f963df14
commit 69c2c2aef4
9 changed files with 189 additions and 237 deletions

View File

@@ -16,7 +16,7 @@
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
@@ -33,6 +33,12 @@
<artifactId>rxjava-reactive-streams</artifactId>
</dependency>
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>