use of com.google.auto.value.extension.serializable.serializer.utils.TestStringSerializerFactory in project auto by google.
the class SerializerFactoryImplTest method getSerializer_factoriesProvided_factoryReturned.
@Test
public void getSerializer_factoriesProvided_factoryReturned() throws Exception {
SerializerFactoryImpl factory = new SerializerFactoryImpl(ImmutableList.of(new TestStringSerializerFactory()), mockProcessingEnvironment);
Serializer actualSerializer = factory.getSerializer(typeMirrorOf(String.class));
assertThat(actualSerializer.getClass().getName()).contains("TestStringSerializerFactory$TestStringSerializer");
}
Aggregations