Search in sources :

Example 1 with WithCustomRecord

use of com.linkedin.pegasus.generator.test.idl.records.WithCustomRecord in project rest.li by linkedin.

the class TyperefGeneratorTest method testCustomTypeOfRecordDefault.

@Test
public void testCustomTypeOfRecordDefault() throws Throwable {
    WithCustomRecord original = new WithCustomRecord();
    assertEquals(original.getCustom().getTitle(), "defaultTitle");
    assertEquals(original.getCustom().getBody(), "defaultBody");
}
Also used : WithCustomRecord(com.linkedin.pegasus.generator.test.idl.records.WithCustomRecord) Test(org.testng.annotations.Test)

Aggregations

WithCustomRecord (com.linkedin.pegasus.generator.test.idl.records.WithCustomRecord)1 Test (org.testng.annotations.Test)1