use of net.morimekta.test.providence.core.Containers in project providence by morimekta.
the class PrettySerializerTest method testConfig.
@Test
public void testConfig() throws IOException {
PrettySerializer serializer = new PrettySerializer().config();
Containers containers = generator.generate(Containers.kDescriptor);
ByteArrayOutputStream out = new ByteArrayOutputStream();
serializer.serialize(out, containers);
ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
Containers res = serializer.deserialize(in, Containers.kDescriptor);
assertThat(res, is(containers));
}
Aggregations