use of com.sldeditor.datasource.SLDEditorFileInterface in project sldeditor by robward-scisys.
the class CreateInternalDataSourceTest method testConnect.
/**
* Test method for
* {@link com.sldeditor.datasource.impl.CreateInternalDataSource#connect(com.sldeditor.datasource.SLDEditorFileInterface)}.
*/
@Test
public void testConnect() {
CreateInternalDataSource ds = new CreateInternalDataSource();
List<DataSourceInfo> dataSourceInfoList = ds.connect(null, null, null);
DataSourceInfo dsInfo = dataSourceInfoList.get(0);
assertTrue(dsInfo != null);
assertNull(dsInfo.getDataStore());
assertNull(dsInfo.getTypeName());
SLDEditorFileInterface sldEditor = new DummyInternalSLDFile();
dataSourceInfoList = ds.connect(null, null, sldEditor);
dsInfo = dataSourceInfoList.get(0);
assertTrue(dsInfo != null);
assertTrue(dsInfo.getTypeName() != null);
assertTrue(dsInfo.getDataStore() != null);
}
use of com.sldeditor.datasource.SLDEditorFileInterface in project sldeditor by robward-scisys.
the class CreateExternalDataSourceTest method testConnect.
/**
* Test method for {@link com.sldeditor.datasource.impl.CreateExternalDataSource#connect(com.sldeditor.datasource.SLDEditorFileInterface)}.
*/
@Test
public void testConnect() {
CreateExternalDataSource ds = new CreateExternalDataSource();
List<DataSourceInfo> dataSourceInfoList = ds.connect(null, null, null);
DataSourceInfo dsInfo = dataSourceInfoList.get(0);
assertTrue(dsInfo != null);
assertNull(dsInfo.getDataStore());
assertNull(dsInfo.getTypeName());
DummyExternalSLDFile dummyExternalSLDFile = new DummyExternalSLDFile();
SLDEditorFileInterface sldEditor = dummyExternalSLDFile;
dataSourceInfoList = ds.connect(dummyExternalSLDFile.getTypeName(), null, sldEditor);
dsInfo = dataSourceInfoList.get(0);
assertTrue(dsInfo != null);
assertTrue(dsInfo.getTypeName() != null);
assertTrue(dsInfo.getDataStore() != null);
}
Aggregations