Track change in thrown exception.
This commit is contained in:
parent
016261d9cf
commit
00946277e8
@ -114,7 +114,7 @@ public final class MixedStreamTest extends TestCase {
|
|||||||
try {
|
try {
|
||||||
gson.fromJson(jsonReader, String.class);
|
gson.fromJson(jsonReader, String.class);
|
||||||
fail();
|
fail();
|
||||||
} catch (IllegalStateException expected) {
|
} catch (JsonParseException expected) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ public final class MixedStreamTest extends TestCase {
|
|||||||
try {
|
try {
|
||||||
gson.fromJson(jsonReader, new TypeToken<List<Car>>() {}.getType());
|
gson.fromJson(jsonReader, new TypeToken<List<Car>>() {}.getType());
|
||||||
fail();
|
fail();
|
||||||
} catch (IllegalStateException expected) {
|
} catch (JsonParseException expected) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user