Search in sources :

Example 6 with TypeElement

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

the class BaseTypeGenerator_Test method toElement_Test.

@Test
public void toElement_Test() {
    final TypeElement result = toElement(createDs3Element(), createTestTypeMap());
    assertThat(result.toPythonCode(), is("'Element' : ElementType()"));
}
Also used : TypeElement(com.spectralogic.ds3autogen.python.model.type.TypeElement) Test(org.junit.Test)

Aggregations

TypeElement (com.spectralogic.ds3autogen.python.model.type.TypeElement)6 Test (org.junit.Test)6 FileUtils (com.spectralogic.ds3autogen.api.FileUtils)3 TypeContent (com.spectralogic.ds3autogen.python.model.type.TypeContent)3 TypeElementList (com.spectralogic.ds3autogen.python.model.type.TypeElementList)3 TestPythonGeneratedCode (com.spectralogic.ds3autogen.python.utils.TestPythonGeneratedCode)3 TypeAttribute (com.spectralogic.ds3autogen.python.model.type.TypeAttribute)1