initFields

open fun initFields(testInstance: Any, gson: Gson)

Utility method to initialize GsonTester fields. See class-level documentation for example usage.

Parameters

testInstance

the test instance

gson

the Gson instance


open fun initFields(testInstance: Any, gson: ObjectFactory<Gson>)

Utility method to initialize GsonTester fields. See class-level documentation for example usage.

Parameters

testInstance

the test instance

gson

an object factory to create the Gson instance