use of com.spectralogic.ds3autogen.api.models.apispec.Ds3Element in project ds3_autogen by SpectraLogic.
the class C_Type_Test method testStructMemberTypeDateToString.
@Test
public void testStructMemberTypeDateToString() throws java.text.ParseException {
final Ds3Element testElement = new Ds3Element("dateElement", "java.util.Date", null, false);
final C_Type c_type = C_TypeHelper.convertDs3ElementType(testElement, ImmutableSet.of());
assertThat(c_type.getTypeName(), is("ds3_str"));
assertThat(c_type.toString(), is("ds3_str*"));
}
use of com.spectralogic.ds3autogen.api.models.apispec.Ds3Element in project ds3_autogen by SpectraLogic.
the class C_Type_Test method testStructTypeLongToString2.
@Test
public void testStructTypeLongToString2() throws java.text.ParseException {
final Ds3Element testElement = new Ds3Element("longElement2", "long", null, false);
final C_Type c_type = C_TypeHelper.convertDs3ElementType(testElement, ImmutableSet.of());
assertThat(c_type.getTypeName(), is("uint64_t"));
assertThat(c_type.toString(), is("uint64_t"));
}
use of com.spectralogic.ds3autogen.api.models.apispec.Ds3Element in project ds3_autogen by SpectraLogic.
the class C_Type_Test method testStructTypeIntToString1.
@Test
public void testStructTypeIntToString1() throws java.text.ParseException {
final Ds3Element testElement = new Ds3Element("intStruct1", "int", null, false);
final C_Type c_type = C_TypeHelper.convertDs3ElementType(testElement, ImmutableSet.of());
assertThat(c_type.getTypeName(), is("int"));
assertThat(c_type.toString(), is("int"));
}
use of com.spectralogic.ds3autogen.api.models.apispec.Ds3Element in project ds3_autogen by SpectraLogic.
the class C_Type_Test method testStructTypeBooleanToString2.
@Test
public void testStructTypeBooleanToString2() throws java.text.ParseException {
final Ds3Element testElement = new Ds3Element("booleanStruct", "boolean", null, false);
final C_Type c_type = C_TypeHelper.convertDs3ElementType(testElement, ImmutableSet.of());
assertThat(c_type.getTypeName(), is("ds3_bool"));
assertThat(c_type.toString(), is("ds3_bool"));
}
Aggregations