Remove usages of deprecated failsWith

This commit is contained in:
Ilya Gorbunov
2015-09-07 16:38:18 +03:00
parent c14f376d21
commit f7c2f034b3
4 changed files with 57 additions and 57 deletions
+2 -2
View File
@@ -213,7 +213,7 @@ class StringJVMTest {
// get the smallest character(by char value)
assertEquals('a', "bacfd".reduce { v, c -> if (v > c) c else v })
failsWith(javaClass<UnsupportedOperationException>()) {
assertFailsWith(UnsupportedOperationException::class) {
"".reduce { a, b -> '\n' }
}
}
@@ -222,7 +222,7 @@ class StringJVMTest {
// get the smallest character(by char value)
assertEquals('a', "bacfd".reduceRight { c, v -> if (v > c) c else v })
failsWith(javaClass<UnsupportedOperationException>()) {
assertFailsWith(UnsupportedOperationException::class) {
"".reduceRight { a, b -> '\n' }
}
}