private SerializerFactory typeASerializerFactory;
private SerializerFactory typeGSerializerFactory;
@Before
public void setUp() {
typeCSerializerFactory = new SerializerFactory() {
public NFTypeSerializer<?>[] createSerializers() {
return new NFTypeSerializer<?>[] { new TypeCSerializer() };
}
};
typeASerializerFactory = new SerializerFactory() {
public NFTypeSerializer<?>[] createSerializers() {
return new NFTypeSerializer<?>[] { new TypeASerializer() };
}
};
typeGSerializerFactory = new SerializerFactory() {
public NFTypeSerializer<?>[] createSerializers() {
return new NFTypeSerializer<?>[] { new TypeGSerializer() };
}
};