Search in sources :

Example 11 with TestModelParser

use of org.camunda.bpm.model.xml.testmodel.TestModelParser in project camunda-xml-model by camunda.

the class AttributeTest method createModel.

public static Object[] createModel() {
    TestModelParser modelParser = new TestModelParser();
    ModelInstance modelInstance = modelParser.getEmptyModel();
    Animals animals = modelInstance.newInstance(Animals.class);
    modelInstance.setDocumentElement(animals);
    createBird(modelInstance, "tweety", Gender.Female);
    return new Object[] { "created", modelInstance, modelParser };
}
Also used : ModelInstance(org.camunda.bpm.model.xml.ModelInstance) Animals(org.camunda.bpm.model.xml.testmodel.instance.Animals) TestModelParser(org.camunda.bpm.model.xml.testmodel.TestModelParser)

Aggregations

TestModelParser (org.camunda.bpm.model.xml.testmodel.TestModelParser)11 ModelInstance (org.camunda.bpm.model.xml.ModelInstance)8 Animals (org.camunda.bpm.model.xml.testmodel.instance.Animals)3 Before (org.junit.Before)3 InputStream (java.io.InputStream)2 Bird (org.camunda.bpm.model.xml.testmodel.instance.Bird)1 Description (org.camunda.bpm.model.xml.testmodel.instance.Description)1