Search in sources :

Example 6 with Animals

use of org.camunda.bpm.model.xml.testmodel.instance.Animals 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

Animals (org.camunda.bpm.model.xml.testmodel.instance.Animals)6 ModelInstance (org.camunda.bpm.model.xml.ModelInstance)4 TestModelParser (org.camunda.bpm.model.xml.testmodel.TestModelParser)3 Test (org.junit.Test)3 TestModelTest (org.camunda.bpm.model.xml.testmodel.TestModelTest)2 Animal (org.camunda.bpm.model.xml.testmodel.instance.Animal)1 Bird (org.camunda.bpm.model.xml.testmodel.instance.Bird)1 Description (org.camunda.bpm.model.xml.testmodel.instance.Description)1