Skip to content

Commit 851de41

Browse files
ggikkoakarnokd
authored andcommitted
Add TimeUnit null check test case in Timed (#5231)
* Add TimeUnit null check test case in Timed * Correct ugly formatting in BasicIntQueueDisposable * Reformatting line * Add blockingIterable’s negative buffer size fail test * Modify BlockingMultiObserver field’s modfier to private * revert style, modifier * Remove duplicated test case. * Remove no need annotation and variable
1 parent 7748fd5 commit 851de41

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/java/io/reactivex/schedulers/TimedTest.java

+5
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,9 @@ public void toStringOf() {
8484

8585
assertEquals("Timed[time=5, unit=SECONDS, value=1]", t1.toString());
8686
}
87+
88+
@Test(expected = NullPointerException.class)
89+
public void timeUnitNullFail() throws Exception {
90+
new Timed<Integer>(1, 5, null);
91+
}
8792
}

0 commit comments

Comments
 (0)