Search in sources :

Example 11 with TypeElementList

use of com.spectralogic.ds3autogen.python.model.type.TypeElementList in project ds3_autogen by SpectraLogic.

the class BaseTypeGenerator_Test method toElementList_EmptyMap_Test.

@Test
public void toElementList_EmptyMap_Test() {
    final TypeElementList result = toElementList(createListDs3Element(), ImmutableMap.of());
    assertThat(result.toPythonCode(), is("('ListElement', None, None)"));
}
Also used : TypeElementList(com.spectralogic.ds3autogen.python.model.type.TypeElementList) Test(org.junit.Test)

Aggregations

TypeElementList (com.spectralogic.ds3autogen.python.model.type.TypeElementList)11 Test (org.junit.Test)11 FileUtils (com.spectralogic.ds3autogen.api.FileUtils)5 TypeContent (com.spectralogic.ds3autogen.python.model.type.TypeContent)5 TestPythonGeneratedCode (com.spectralogic.ds3autogen.python.utils.TestPythonGeneratedCode)5 TypeElement (com.spectralogic.ds3autogen.python.model.type.TypeElement)3 Ds3Annotation (com.spectralogic.ds3autogen.api.models.apispec.Ds3Annotation)2 Ds3AnnotationElement (com.spectralogic.ds3autogen.api.models.apispec.Ds3AnnotationElement)2 Ds3Element (com.spectralogic.ds3autogen.api.models.apispec.Ds3Element)2 Ds3Type (com.spectralogic.ds3autogen.api.models.apispec.Ds3Type)1 TypeAttribute (com.spectralogic.ds3autogen.python.model.type.TypeAttribute)1