GsonWireContractTest

Tests that Gson serialization contracts are correct at runtime.

Layer F: Gson Wire-Contract Tests.

These tests compile generated source code with the GSON backend and then use Gson at runtime to verify:

  • @SerializedName values produce correct JSON keys.

  • Encode/decode preserves GraphQL wire names.

  • FieldNamingPolicy CANNOT override explicit @SerializedName values.

  • Keyword fields, aliases, enums, and collisions are handled correctly.

Gson does not require a compiler plugin, so these tests can compile and load generated code directly at test time.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun setUp()