use of org.kie.workbench.common.migration.cli.RealSystemAccess in project kie-wb-common by kiegroup.
the class AllFieldTypesFormGenerationTest method doInit.
@Override
protected void doInit() throws Exception {
fieldMappings.put("subform", SubFormFieldDefinition.class);
fieldMappings.put("multiple", MultipleSubFormFieldDefinition.class);
fieldMappings.put("text", TextBoxBaseDefinition.class);
fieldMappings.put("textarea", TextAreaFieldDefinition.class);
fieldMappings.put("character", CharacterBoxFieldDefinition.class);
fieldMappings.put("float", DecimalBoxFieldDefinition.class);
fieldMappings.put("double", DecimalBoxFieldDefinition.class);
fieldMappings.put("bigDecimal", DecimalBoxFieldDefinition.class);
fieldMappings.put("bigInteger", IntegerBoxFieldDefinition.class);
fieldMappings.put("byte", IntegerBoxFieldDefinition.class);
fieldMappings.put("short", IntegerBoxFieldDefinition.class);
fieldMappings.put("integer", IntegerBoxFieldDefinition.class);
fieldMappings.put("long", IntegerBoxFieldDefinition.class);
fieldMappings.put("email", TextBoxFieldDefinition.class);
fieldMappings.put("boolean", CheckBoxFieldDefinition.class);
fieldMappings.put("html", TextAreaFieldDefinition.class);
fieldMappings.put("date", DatePickerFieldDefinition.class);
fieldMappings.put("shortDate", DatePickerFieldDefinition.class);
fieldMappings.put("document", DocumentFieldDefinition.class);
fieldMappings.put("select", StringListBoxFieldDefinition.class);
fieldMappings.put("radio", StringRadioGroupFieldDefinition.class);
List<FormMigrationSummary> summaries = new ArrayList<>();
initForm(form -> userForm = form, DATAOBJECTS_RESOURCES, ALL_FIELD_TYPES, userFormPath);
summaries.add(new FormMigrationSummary(new Resource<>(userForm, userFormPath)));
context = new MigrationContext(workspaceProject, weldContainer, migrationServicesCDIWrapper, new RealSystemAccess(), summaries);
}
use of org.kie.workbench.common.migration.cli.RealSystemAccess in project kie-wb-common by kiegroup.
the class FormDefinitionGeneratorForBPMNForWrongTaskFormNameTest method doInit.
@Override
protected void doInit() throws Exception {
List<FormMigrationSummary> summaries = new ArrayList<>();
initForm(form -> wrongProcessForm = form, BPMN_RESOURCES, WRONG_PROCESS_FORM, wrongProcessPath);
summaries.add(new FormMigrationSummary(new Resource<>(wrongProcessForm, wrongProcessPath)));
initForm(form -> wrontTaskForm = form, BPMN_RESOURCES, WRONG_TASK_FORM, wrongTaskPath);
summaries.add(new FormMigrationSummary(new Resource<>(wrontTaskForm, wrongTaskPath)));
context = new MigrationContext(workspaceProject, weldContainer, migrationServicesCDIWrapper, new RealSystemAccess(), summaries);
generator = new FormDefinitionGenerator(DataObjectFormAdapter::new, this::getBPMNAdapter);
}
use of org.kie.workbench.common.migration.cli.RealSystemAccess in project kie-wb-common by kiegroup.
the class FormDefinitionGeneratorForBPMNWithComplexVariableTest method doInit.
@Override
protected void doInit() throws Exception {
List<FormMigrationSummary> summaries = new ArrayList<>();
initForm(form -> userForm = form, DATAOBJECTS_RESOURCES, USER_FORM, userFormPath);
summaries.add(new FormMigrationSummary(new Resource<>(userForm, userFormPath)));
initForm(form -> lineForm = form, DATAOBJECTS_RESOURCES, LINE_FORM, lineFormPath);
summaries.add(new FormMigrationSummary(new Resource<>(lineForm, lineFormPath)));
initForm(form -> processForm = form, BPMN_RESOURCES, PROCESS_FORM, processFormPath);
summaries.add(new FormMigrationSummary(new Resource<>(processForm, processFormPath)));
initForm(form -> taskForm = form, BPMN_RESOURCES, TASK_FORM, taskFormPath);
summaries.add(new FormMigrationSummary(new Resource<>(taskForm, taskFormPath)));
context = new MigrationContext(workspaceProject, weldContainer, migrationServicesCDIWrapper, new RealSystemAccess(), summaries);
generator = new FormDefinitionGenerator(DataObjectFormAdapter::new, this::getBPMNAdapter);
}
use of org.kie.workbench.common.migration.cli.RealSystemAccess in project kie-wb-common by kiegroup.
the class FormDefinitionGeneratorForDataObjectsTest method doInit.
@Override
protected void doInit() throws Exception {
List<FormMigrationSummary> summaries = new ArrayList<>();
initForm(form -> userForm = form, DATAOBJECTS_RESOURCES, USER_FORM, userFormPath);
summaries.add(new FormMigrationSummary(new Resource<>(userForm, userFormPath)));
initForm(form -> lineForm = form, DATAOBJECTS_RESOURCES, LINE_FORM, lineFormPath);
summaries.add(new FormMigrationSummary(new Resource<>(lineForm, lineFormPath)));
initForm(form -> invoiceForm = form, DATAOBJECTS_RESOURCES, INVOICE_FORM, invoiceFormPath);
summaries.add(new FormMigrationSummary(new Resource<>(invoiceForm, invoiceFormPath)));
context = new MigrationContext(workspaceProject, weldContainer, migrationServicesCDIWrapper, new RealSystemAccess(), summaries);
}
use of org.kie.workbench.common.migration.cli.RealSystemAccess in project kie-wb-common by kiegroup.
the class FormDefinitionGeneratorForDataObjectsWithErrorsTest method doInit.
@Override
protected void doInit() throws Exception {
List<FormMigrationSummary> summaries = new ArrayList<>();
initForm(form -> basicDataHolderForm = form, DATAOBJECTS_RESOURCES, USER_BASIC_TYPE_DATA_HOLDER_FORM, basicDataHolderPath);
summaries.add(new FormMigrationSummary(new Resource<>(basicDataHolderForm, basicDataHolderPath)));
initForm(form -> noDataHoldersForm = form, DATAOBJECTS_RESOURCES, USER_NO_DATA_HOLDERS_FORM, noDataHoldersPath);
summaries.add(new FormMigrationSummary(new Resource<>(noDataHoldersForm, noDataHoldersPath)));
initForm(form -> multipleDataHoldersForm = form, DATAOBJECTS_RESOURCES, USER_MULTIPLE_DATA_HOLDERS_FORM, multipleDataHoldersPath);
summaries.add(new FormMigrationSummary(new Resource<>(multipleDataHoldersForm, multipleDataHoldersPath)));
context = new MigrationContext(workspaceProject, weldContainer, migrationServicesCDIWrapper, new RealSystemAccess(), summaries);
}
Aggregations