@Test public void createModel() { JtwigModel model = testling.createModel(testSuite); assertEquals(model.get(TEST_DATA_ENTITY.getName()).get().getValue(), testSuite); assertEquals(model.get(SAKULI_PROPERTIES.getName()).get().getValue(), sakuliProperties); assertEquals(model.get(CHECK_MK_PROPERTIES.getName()).get().getValue(), checkMKProperties); }
protected JtwigModel createModel(AbstractTestDataEntity abstractTestDataEntity) { JtwigModel model = JtwigModel.newModel() .with(TEST_DATA_ENTITY.getName(), abstractTestDataEntity) .with(SAKULI_PROPERTIES.getName(), sakuliProperties); if (getSpecificModelEntities() != null) { getSpecificModelEntities().forEach((templateModelEntityName, object) -> { model.with(templateModelEntityName.getName(), object); }); } return model; }
AbstractTemplateOutputBuilder extends AbstractOutputBuilder { protected JtwigModel createModel(AbstractTestDataEntity abstractTestDataEntity) { JtwigModel model = JtwigModel.newModel() .with(TEST_DATA_ENTITY.getName(), abstractTestDataEntity) .with(SAKULI_PROPERTIES.getName(), sakuliProperties); if (getSpecificModelEntities() != null) { getSpecificModelEntities().forEach((templateModelEntityName, object) -> { model.with(templateModelEntityName.getName(), object); }); } return model; } }
AbstractTemplateOutputBuilder extends AbstractOutputBuilder { protected JtwigModel createModel(AbstractTestDataEntity abstractTestDataEntity) { JtwigModel model = JtwigModel.newModel() .with(TEST_DATA_ENTITY.getName(), abstractTestDataEntity) .with(SAKULI_PROPERTIES.getName(), sakuliProperties); if (getSpecificModelEntities() != null) { getSpecificModelEntities().forEach((templateModelEntityName, object) -> { model.with(templateModelEntityName.getName(), object); }); } return model; }  }
AbstractTemplateOutputBuilder extends AbstractOutputBuilder { protected JtwigModel createModel(AbstractTestDataEntity abstractTestDataEntity) { JtwigModel model = JtwigModel.newModel() .with(TEST_DATA_ENTITY.getName(), abstractTestDataEntity) .with(SAKULI_PROPERTIES.getName(), sakuliProperties); if (getSpecificModelEntities() != null) { getSpecificModelEntities().forEach((templateModelEntityName, object) -> { model.with(templateModelEntityName.getName(), object); }); } return model; }  abstract String getConverterName(); abstract Map<TemplateModelEntityName, Object> getSpecificModelEntities(); String createOutput(AbstractTestDataEntity abstractTestDataEntity); }
AbstractTemplateOutputBuilder extends AbstractOutputBuilder { protected JtwigModel createModel(AbstractTestDataEntity abstractTestDataEntity) { JtwigModel model = JtwigModel.newModel() .with(TEST_DATA_ENTITY.getName(), abstractTestDataEntity) .with(SAKULI_PROPERTIES.getName(), sakuliProperties); if (getSpecificModelEntities() != null) { getSpecificModelEntities().forEach((templateModelEntityName, object) -> { model.with(templateModelEntityName.getName(), object); }); } return model; }  abstract String getConverterName(); abstract Map<TemplateModelEntityName, Object> getSpecificModelEntities(); String createOutput(AbstractTestDataEntity abstractTestDataEntity); static final String MAIN_TEMPLATE_NAME; }