Search in sources :

Example 1 with DataSourceDefEditorContent

use of org.kie.workbench.common.screens.datasource.management.model.DataSourceDefEditorContent in project kie-wb-common by kiegroup.

the class DataSourceDefEditorTest method createContent.

private DataSourceDefEditorContent createContent() {
    DataSourceDefEditorContent content = new DataSourceDefEditorContent();
    content.setDef(new DataSourceDef());
    content.getDef().setName(NAME);
    content.getDef().setDriverUuid(DRIVER_UUID);
    content.getDef().setConnectionURL(CONNECTION_URL);
    content.getDef().setUser(USER);
    content.getDef().setPassword(PASSWORD);
    return content;
}
Also used : DataSourceDefEditorContent(org.kie.workbench.common.screens.datasource.management.model.DataSourceDefEditorContent) DataSourceDef(org.kie.workbench.common.screens.datasource.management.model.DataSourceDef)

Example 2 with DataSourceDefEditorContent

use of org.kie.workbench.common.screens.datasource.management.model.DataSourceDefEditorContent in project kie-wb-common by kiegroup.

the class DataSourceDefEditorServiceTest method setup.

@Before
public void setup() {
    super.setup();
    editorService = new DataSourceDefEditorServiceImpl(runtimeManager, serviceHelper, ioService, moduleService, optionsFactory, pathNamingService, artifactResolver, dataSourceDefQueryService, driverDefService, newDataSourceEvent, updateDataSourceEvent, deleteDataSourceEvent);
    dataSourceDef = new DataSourceDef();
    dataSourceDef.setUuid("uuid");
    dataSourceDef.setName("dataSourceName");
    dataSourceDef.setConnectionURL("connectionURL");
    dataSourceDef.setUser("user");
    dataSourceDef.setPassword("password");
    dataSourceDefEditorContent = new DataSourceDefEditorContent();
    dataSourceDefEditorContent.setDef(dataSourceDef);
    dataSourceDefEditorContent.setModule(module);
    originalDataSourceDef = new DataSourceDef();
    originalDataSourceDef.setUuid("uuid");
    originalDataSourceDef.setName("dataSourceNameOriginal");
    originalDataSourceDef.setConnectionURL("connectionURLOriginal");
    originalDataSourceDef.setUser("userOriginal");
    originalDataSourceDef.setPassword("passwordOriginal");
}
Also used : DataSourceDef(org.kie.workbench.common.screens.datasource.management.model.DataSourceDef) DataSourceDefEditorContent(org.kie.workbench.common.screens.datasource.management.model.DataSourceDefEditorContent) Before(org.junit.Before)

Aggregations

DataSourceDef (org.kie.workbench.common.screens.datasource.management.model.DataSourceDef)2 DataSourceDefEditorContent (org.kie.workbench.common.screens.datasource.management.model.DataSourceDefEditorContent)2 Before (org.junit.Before)1