Skip to content

Commit

Permalink
Remove customnames test as we're just going to stick with simple @JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Feb 12, 2018
1 parent 3b69afa commit 8126bd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import com.squareup.moshi.Moshi
import com.squareup.moshi.MoshiSerializableFactory
import com.squareup.moshi.ToJson
import com.squareup.moshi.Types
import com.squareup.moshi.kotshi.CustomNames
import com.squareup.moshi.kotshi.GenericClass
import com.squareup.moshi.kotshi.GenericClassWithQualifier
import com.squareup.moshi.kotshi.Hello
Expand Down Expand Up @@ -139,17 +138,6 @@ class TestAdapterGeneration {
}
}

@Ignore("Pending decision on whether to care about annotation site targets")
@Test
fun testCustomNames() {
val json = """{"jsonProp1":"value1","jsonProp2":"value2"}"""
val adapter = moshi.adapter(CustomNames::class.java)
val actual = adapter.fromJson(json)
val expected = CustomNames("value1", "value2")
assertEquals(expected, actual)
assertEquals(json, adapter.toJson(actual))
}

@Test
fun testExtraFields() {
val adapter = moshi.adapter(Simple::class.java)
Expand Down

0 comments on commit 8126bd1

Please sign in to comment.