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:
Jesse Wilson
2018-05-04 15:39:55 -04:00
parent eb24a23568
commit c35e3a1550

View File

@@ -162,7 +162,7 @@ class KotlinJsonAdapterTest {
jsonAdapter.fromJson("{\"a\":\"hello\"}")
fail()
} 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\"}")
fail()
} catch (expected: JsonDataException) {
assertThat(expected).hasMessage("Non-null value 'a' was null at \$")
assertThat(expected).hasMessage("Non-null value 'a' was null at \$.a")
}
}