Search in sources :

Example 1 with SerializerFactory

use of com.google.auto.value.extension.serializable.serializer.interfaces.SerializerFactory in project auto by google.

the class SerializerFactoryLoaderTest method getFactory_extensionsLoaded.

@Test
public void getFactory_extensionsLoaded() throws Exception {
    SerializerFactory factory = SerializerFactoryLoader.getFactory(mockProcessingEnvironment);
    Serializer actualSerializer = factory.getSerializer(typeMirrorOf(String.class));
    assertThat(actualSerializer.getClass().getName()).contains("TestStringSerializerFactory$TestStringSerializer");
}
Also used : SerializerFactory(com.google.auto.value.extension.serializable.serializer.interfaces.SerializerFactory) Serializer(com.google.auto.value.extension.serializable.serializer.interfaces.Serializer) CompilationAbstractTest(com.google.auto.value.extension.serializable.serializer.utils.CompilationAbstractTest) Test(org.junit.Test)

Aggregations

Serializer (com.google.auto.value.extension.serializable.serializer.interfaces.Serializer)1 SerializerFactory (com.google.auto.value.extension.serializable.serializer.interfaces.SerializerFactory)1 CompilationAbstractTest (com.google.auto.value.extension.serializable.serializer.utils.CompilationAbstractTest)1 Test (org.junit.Test)1