mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Fix null
This commit is contained in:
@@ -546,13 +546,13 @@ public final class MoshiTest {
|
||||
Class<? extends Annotation> annotation = Annotation.class;
|
||||
Moshi.Builder builder = new Moshi.Builder();
|
||||
try {
|
||||
builder.add((JsonAdapter.Factory) null);
|
||||
builder.add((null));
|
||||
fail();
|
||||
} catch (IllegalArgumentException expected) {
|
||||
assertThat(expected).hasMessage("factory == null");
|
||||
}
|
||||
try {
|
||||
builder.add(null);
|
||||
builder.add((Object) null);
|
||||
fail();
|
||||
} catch (IllegalArgumentException expected) {
|
||||
assertThat(expected).hasMessage("adapter == null");
|
||||
|
Reference in New Issue
Block a user