use of com.spectralogic.ds3autogen.c.models.Struct in project ds3_autogen by SpectraLogic.
the class StructConverter_Test method testConvertNameToMarshallSetValid.
@Test
public void testConvertNameToMarshallSetValid() throws ParseException {
final Ds3Element testElement1 = new Ds3Element("BoolElement", "boolean", null, false);
final Ds3Element testElement2 = new Ds3Element("BeanElement", "com.spectralogic.s3.server.domain.UserApiBean", null, false);
final ImmutableList<Ds3Element> elementsList = ImmutableList.of(testElement1, testElement2);
final Ds3Type ds3Type = new Ds3Type("testDs3Type", "testDs3TypeMarshallName", elementsList, ImmutableList.of());
final Struct testStruct = StructConverter.toStruct(ds3Type, ImmutableSet.of(), ImmutableSet.of(), ImmutableSet.of(), ImmutableSet.of(), ImmutableSet.of());
assertThat(testStruct.getNameToMarshall(), is("testDs3TypeMarshallName"));
}
Aggregations