Skip to content

Commit

Permalink
Add TimeUnit null check test case in Timed (#5231)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ggikko authored and akarnokd committed Mar 26, 2017
1 parent 7748fd5 commit 851de41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/io/reactivex/schedulers/TimedTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,9 @@ public void toStringOf() {

assertEquals("Timed[time=5, unit=SECONDS, value=1]", t1.toString());
}

@Test(expected = NullPointerException.class)
public void timeUnitNullFail() throws Exception {
new Timed<Integer>(1, 5, null);
}
}

0 comments on commit 851de41

Please sign in to comment.