Skip to content

Commit

Permalink
Fix the unit tests in groovy and kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Dec 20, 2013
1 parent 96064c3 commit bfb9cd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def class ObservableTests {
assertEquals("one", s)
}

@Test(expected = IllegalStateException.class)
@Test(expected = IllegalArgumentException.class)
public void testSingle2() {
Observable.from("one", "two").toBlockingObservable().single({ x -> x.length() == 3})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public class BasicKotlinTests {
assertEquals("default", Observable.from("one", "two")!!.toBlockingObservable()!!.lastOrDefault("default") { x -> x!!.length > 3 })
}

[Test(expected = javaClass<IllegalStateException>())]
[Test(expected = javaClass<IllegalArgumentException>())]
public fun testSingle() {
assertEquals("one", Observable.from("one")!!.toBlockingObservable()!!.single { x -> x!!.length == 3 })
Observable.from("one", "two")!!.toBlockingObservable()!!.single { x -> x!!.length == 3 }
Expand Down

0 comments on commit bfb9cd1

Please sign in to comment.