mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Fix JsonQualifiers test
This commit is contained in:
@@ -339,8 +339,8 @@ public final class JsonQualifiersTest {
|
||||
assertThat(expected).hasCauseExactlyInstanceOf(IllegalArgumentException.class);
|
||||
assertThat(expected.getCause()).hasMessage("No @FromJson adapter for class java.lang.String "
|
||||
+ "annotated [@com.squareup.moshi.JsonQualifiersTest$FooPrefix()]");
|
||||
assertThat(expected).hasCauseExactlyInstanceOf(IllegalArgumentException.class);
|
||||
assertThat(expected.getCause()).hasMessage("No next JsonAdapter for class "
|
||||
assertThat(expected.getCause()).hasCauseExactlyInstanceOf(IllegalArgumentException.class);
|
||||
assertThat(expected.getCause().getCause()).hasMessage("No next JsonAdapter for class "
|
||||
+ "java.lang.String annotated [@com.squareup.moshi.JsonQualifiersTest$FooPrefix()]");
|
||||
}
|
||||
}
|
||||
@@ -368,8 +368,8 @@ public final class JsonQualifiersTest {
|
||||
assertThat(expected).hasCauseExactlyInstanceOf(IllegalArgumentException.class);
|
||||
assertThat(expected.getCause()).hasMessage("No @ToJson adapter for class java.lang.String "
|
||||
+ "annotated [@com.squareup.moshi.JsonQualifiersTest$FooPrefix()]");
|
||||
assertThat(expected).hasCauseExactlyInstanceOf(IllegalArgumentException.class);
|
||||
assertThat(expected.getCause()).hasMessage("No next JsonAdapter for class "
|
||||
assertThat(expected.getCause()).hasCauseExactlyInstanceOf(IllegalArgumentException.class);
|
||||
assertThat(expected.getCause().getCause()).hasMessage("No next JsonAdapter for class "
|
||||
+ "java.lang.String annotated [@com.squareup.moshi.JsonQualifiersTest$FooPrefix()]");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user