mirror of
https://github.com/fankes/moshi.git
synced 2025-10-21 17:09:21 +08:00
Merge pull request #524 from square/jwilson.0504.green_green
Fix some tests that have the wrong expected exception message
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