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;
}
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");
}
Aggregations