use of com.linkedin.pegasus.generator.test.idl.fixed.WithFixed8 in project rest.li by linkedin.
the class FixedGeneratorTest method testFixed.
@Test
public void testFixed() throws Throwable {
WithFixed8 original = new WithFixed8();
Fixed8 fixed8 = new Fixed8(SchemaFixtures.bytesFixed8);
original.setFixed(fixed8);
WithFixed8 roundTripped = new WithFixed8(roundTrip(original.data()));
assertEquals(roundTripped.getFixed().bytes(), SchemaFixtures.bytesFixed8);
}
Aggregations