Merge pull request #750 from square/eric.tests
Fix KotlinJsonAdapter tests that were missing the factory.
This commit is contained in:
commit
4550da0abe
1 changed files with 2 additions and 0 deletions
|
@ -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"}"""))
|
||||
|
|
Loading…
Reference in a new issue