From c35e3a1550553c9eefe81cef145952a7d5467a48 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Fri, 4 May 2018 15:39:55 -0400 Subject: [PATCH] Fix some tests that have the wrong expected exception message The message got improved in a conflicting change to these tests being added. --- .../java/com/squareup/moshi/kotlin/KotlinJsonAdapterTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin/src/test/java/com/squareup/moshi/kotlin/KotlinJsonAdapterTest.kt b/kotlin/src/test/java/com/squareup/moshi/kotlin/KotlinJsonAdapterTest.kt index d78b442..2f1ec15 100644 --- a/kotlin/src/test/java/com/squareup/moshi/kotlin/KotlinJsonAdapterTest.kt +++ b/kotlin/src/test/java/com/squareup/moshi/kotlin/KotlinJsonAdapterTest.kt @@ -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") } }