Search in sources :

Example 1 with WithFixed8

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);
}
Also used : WithFixed8(com.linkedin.pegasus.generator.test.idl.fixed.WithFixed8) Fixed8(com.linkedin.pegasus.generator.test.idl.fixed.Fixed8) WithFixed8(com.linkedin.pegasus.generator.test.idl.fixed.WithFixed8) Test(org.testng.annotations.Test)

Aggregations

Fixed8 (com.linkedin.pegasus.generator.test.idl.fixed.Fixed8)1 WithFixed8 (com.linkedin.pegasus.generator.test.idl.fixed.WithFixed8)1 Test (org.testng.annotations.Test)1