Skip to content

Commit bfb9cd1

Browse files
committed
Fix the unit tests in groovy and kotlin
1 parent 96064c3 commit bfb9cd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

language-adaptors/rxjava-groovy/src/test/groovy/rx/lang/groovy/ObservableTests.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def class ObservableTests {
278278
assertEquals("one", s)
279279
}
280280

281-
@Test(expected = IllegalStateException.class)
281+
@Test(expected = IllegalArgumentException.class)
282282
public void testSingle2() {
283283
Observable.from("one", "two").toBlockingObservable().single({ x -> x.length() == 3})
284284
}

language-adaptors/rxjava-kotlin/src/test/kotlin/rx/lang/kotlin/BasicKotlinTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public class BasicKotlinTests {
255255
assertEquals("default", Observable.from("one", "two")!!.toBlockingObservable()!!.lastOrDefault("default") { x -> x!!.length > 3 })
256256
}
257257

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

0 commit comments

Comments
 (0)