38394041424344
@Before public void setUp() { this.gson = new GsonBuilder(); this.gson.registerTypeAdapter(User.class, new UserDeserializer()); }
67686970717273747576
this.data = data; this.passwordHash = new Sha256Password(); // build the custom serializer/deserializer GsonBuilder builder = new GsonBuilder(); builder.registerTypeAdapter(this.user, new UserDeserializer()); this.gson = builder.create(); }