package org.jeeventstore.serialization.gson;

import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import java.lang.reflect.Type;
import javax.inject.Singleton;

/**
 *
 * @author Alexander Langer
 */
public class TestTypeConverter implements EventSerializerGsonTypeConverter<TestObject> {

    @Override
    public Class<TestObject> convertedType() {
        return TestObject.class;
    }

    @Override
    public JsonElement serialize(TestObject t, Type type, JsonSerializationContext jsc) {
        return new JsonPrimitive("HELLO");
    }

    @Override
    public TestObject deserialize(JsonElement je, Type type, JsonDeserializationContext jdc) throws JsonParseException {
        return jdc.deserialize(je, type);
    }

}

@@ -130,43 +130,8 @@
 nt;%0A
-import com.google.gson.JsonObject;%0A
 impo
@@ -290,39 +290,8 @@
 ype;
-%0Aimport javax.inject.Singleton;
 %0A%0A/*

Remove unused imports