Merge pull request #750 from square/eric.tests

Fix KotlinJsonAdapter tests that were missing the factory.
This commit is contained in:
Zac Sweers 2018-11-19 23:27:31 -08:00 committed by GitHub
commit 4550da0abe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -869,6 +869,7 @@ class KotlinJsonAdapterTest {
return value ?: "fallback"
}
})
.add(KotlinJsonAdapterFactory())
.build()
assertThat(moshi.adapter(HasNonNullConstructorParameter::class.java)
@ -935,6 +936,7 @@ class KotlinJsonAdapterTest {
}
null
})
.add(KotlinJsonAdapterFactory())
.build()
val adapter = moshi.adapter(HasNullableBoolean::class.java).serializeNulls()
assertThat(adapter.fromJson("""{"boolean":"not a boolean"}"""))