Search in sources :

Example 6 with ClientValidationServiceMock

use of org.kie.workbench.common.screens.datasource.management.client.util.ClientValidationServiceMock in project kie-wb-common by kiegroup.

the class DriverWizardTestBase method setup.

/**
 * Initializes the wizard page.
 */
protected void setup() {
    mainPanel = new DriverDefMainPanel(mainPanelView);
    driverDef = new DriverDef();
    editorHelper = new DriverDefEditorHelper(translationService, new ClientValidationServiceMock());
    defPage = new DriverDefPage(view, mainPanel, editorHelper, statusChangeEvent);
    defPage.setDriverDef(driverDef);
}
Also used : DriverDefEditorHelper(org.kie.workbench.common.screens.datasource.management.client.editor.driver.DriverDefEditorHelper) DriverDefMainPanel(org.kie.workbench.common.screens.datasource.management.client.editor.driver.DriverDefMainPanel) DriverDef(org.kie.workbench.common.screens.datasource.management.model.DriverDef) ClientValidationServiceMock(org.kie.workbench.common.screens.datasource.management.client.util.ClientValidationServiceMock)

Aggregations

ClientValidationServiceMock (org.kie.workbench.common.screens.datasource.management.client.util.ClientValidationServiceMock)6 Before (org.junit.Before)4 DataSourceDef (org.kie.workbench.common.screens.datasource.management.model.DataSourceDef)2 DriverDef (org.kie.workbench.common.screens.datasource.management.model.DriverDef)2 Pair (org.uberfire.commons.data.Pair)2 ArrayList (java.util.ArrayList)1 DataSourceDefEditorHelper (org.kie.workbench.common.screens.datasource.management.client.editor.datasource.DataSourceDefEditorHelper)1 DataSourceDefMainPanel (org.kie.workbench.common.screens.datasource.management.client.editor.datasource.DataSourceDefMainPanel)1 DriverDefEditorHelper (org.kie.workbench.common.screens.datasource.management.client.editor.driver.DriverDefEditorHelper)1 DriverDefMainPanel (org.kie.workbench.common.screens.datasource.management.client.editor.driver.DriverDefMainPanel)1 DriverDefInfo (org.kie.workbench.common.screens.datasource.management.model.DriverDefInfo)1 Path (org.uberfire.backend.vfs.Path)1 Command (org.uberfire.mvp.Command)1 ParameterizedCommand (org.uberfire.mvp.ParameterizedCommand)1