@@ -38,7 +38,7 @@ public class FlowableTest {
3838 assertNotNull (integerFlowable );
3939 }
4040
41- @ Test public void whenFlowableUsesBufferStragegy_thenOnBackpressureAllValuesAreBufferedAndReceived () {
41+ @ Test public void thenAllValuesAreBufferedAndReceived () {
4242 List testList = IntStream .range (0 , 100000 ).boxed ().collect (Collectors .toList ());
4343 Observable observable = Observable .fromIterable (testList );
4444 TestSubscriber <Integer > testSubscriber = observable .toFlowable (BackpressureStrategy .BUFFER ).observeOn (Schedulers .computation ()).test ();
@@ -50,7 +50,7 @@ public class FlowableTest {
5050 assertEquals (testList , receivedInts );
5151 }
5252
53- @ Test public void whenFlowableUsesDropStrategy_thenOnBackpressureNotAllValuesAreReceivedAndTheLastElementIsNotReceived () {
53+ @ Test public void whenDropStrategyUsed_thenOnBackpressureDropped () {
5454 List testList = IntStream .range (0 , 100000 ).boxed ().collect (Collectors .toList ());
5555
5656 Observable observable = Observable .fromIterable (testList );
@@ -62,23 +62,23 @@ public class FlowableTest {
6262 assertThat (!receivedInts .contains (100000 ));
6363 }
6464
65- @ Test public void whenFlowableUsesMissingStrategy_thenExceptionIsThrownOnBackpressure () {
65+ @ Test public void whenMissingStrategyUsed_thenException () {
6666 Observable observable = Observable .range (1 , 100000 );
6767 TestSubscriber subscriber = observable .toFlowable (BackpressureStrategy .MISSING ).observeOn (Schedulers .computation ()).test ();
6868
6969 subscriber .awaitTerminalEvent ();
7070 subscriber .assertError (MissingBackpressureException .class );
7171 }
7272
73- @ Test public void whenFlowableUsesErrorStrategy_thenExceptionIsThrownOnBackpressure () {
74- Observable observable = Observable .range (1 , 100000 );
73+ @ Test public void whenErrorStrategyUsed_thenExceptionIsThrown () {
74+ Observable observable = Observable .range (1 , 100000 );
7575 TestSubscriber subscriber = observable .toFlowable (BackpressureStrategy .ERROR ).observeOn (Schedulers .computation ()).test ();
7676
7777 subscriber .awaitTerminalEvent ();
7878 subscriber .assertError (MissingBackpressureException .class );
7979 }
8080
81- @ Test public void whenFlowableUsesLatesStrategy_thenNotElementsAreReceivedButTheLastElementIs () {
81+ @ Test public void whenLatestStrategyUsed_thenTheLastElementReceived () {
8282 List testList = IntStream .range (0 , 100000 ).boxed ().collect (Collectors .toList ());
8383 Observable observable = Observable .fromIterable (testList );
8484 TestSubscriber <Integer > testSubscriber = observable .toFlowable (BackpressureStrategy .LATEST ).observeOn (Schedulers .computation ()).test ();
0 commit comments