mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Fix some tests that have the wrong expected exception message
The message got improved in a conflicting change to these tests being added.
This commit is contained in:
@@ -162,7 +162,7 @@ class KotlinJsonAdapterTest {
|
|||||||
jsonAdapter.fromJson("{\"a\":\"hello\"}")
|
jsonAdapter.fromJson("{\"a\":\"hello\"}")
|
||||||
fail()
|
fail()
|
||||||
} catch (expected: JsonDataException) {
|
} catch (expected: JsonDataException) {
|
||||||
assertThat(expected).hasMessage("Non-null value 'a' was null at \$")
|
assertThat(expected).hasMessage("Non-null value 'a' was null at \$.a")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ class KotlinJsonAdapterTest {
|
|||||||
jsonAdapter.fromJson("{\"a\":\"hello\"}")
|
jsonAdapter.fromJson("{\"a\":\"hello\"}")
|
||||||
fail()
|
fail()
|
||||||
} catch (expected: JsonDataException) {
|
} catch (expected: JsonDataException) {
|
||||||
assertThat(expected).hasMessage("Non-null value 'a' was null at \$")
|
assertThat(expected).hasMessage("Non-null value 'a' was null at \$.a")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user