GsonWireContractTest
class 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:
@SerializedNamevalues produce correct JSON keys.Encode/decode preserves GraphQL wire names.
FieldNamingPolicyCANNOT override explicit@SerializedNamevalues.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.