use of org.kie.workbench.common.forms.adf.engine.shared.formGeneration.model.Address in project kie-wb-common by kiegroup.
the class AbstractFormGenerationTest method init.
protected void init() {
i18nHelper = spy(I18nHelper.class);
resourcesProvider = new TestFormGenerationResourcesProvider();
generator = new TestFormGenerator(new LayoutGenerator(), i18nHelper);
generator.registerProcessor(new TestFieldElementProcessor(fieldManager, new TestPropertyValueExtractor()));
generator.registerResources(resourcesProvider);
model.setName("John");
model.setLastName("Snow");
model.setMarried(Boolean.FALSE);
model.setBirthDay(new Date());
model.setWeight(new Weight(75));
model.setHeight(new Height(1.80));
model.setAddress(new Address("Main Street", 1, "Winterfell"));
model.getWeapons().add(new Weapon("Sword", 10));
model.getWeapons().add(new Weapon("Axe", 15));
}
Aggregations