use of com.linkedin.pegasus.generator.test.idl.records.WithOptionalPrimitiveCustomTypes in project rest.li by linkedin.
the class RecordGeneratorTest method testWithOptionalPrimitiveCustomTypes.
@Test
public void testWithOptionalPrimitiveCustomTypes() throws Throwable {
WithOptionalPrimitiveCustomTypes original = new WithOptionalPrimitiveCustomTypes();
original.setIntField(new CustomInt(1));
WithOptionalPrimitiveCustomTypes roundTripped = new WithOptionalPrimitiveCustomTypes(roundTrip(original.data()));
assertEquals(roundTripped.getIntField(), new CustomInt(1));
}
Aggregations