37383940414243
@Before public void setUp() { this.gson = new GsonBuilder(); this.gson.registerTypeAdapter(Project.class, new ProjectDeserializer()); }
575859606162636465
{ this.data = data; // hang the custom serializer/deserializer GsonBuilder builder = new GsonBuilder(); builder.registerTypeAdapter(this.project, new ProjectDeserializer()); this.gson = builder.create(); }