use of com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerNode in project sldeditor by robward-scisys.
the class GeoServerInput method addConnectionNode.
/**
* Adds the connection node.
*
* @param connection the connection
*/
private void addConnectionNode(GeoServerConnection connection) {
GeoServerNode node = new GeoServerNode(this, connection);
getRootGeoServerNode().add(node);
progress.addNewConnectionNode(connection, node);
}
use of com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerNode in project sldeditor by robward-scisys.
the class GeoServerNodeTest method testGeoServerLayerNode.
/**
* Test method for {@link com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerLayerNode#GeoServerLayerNode(com.sldeditor.common.filesystem.FileSystemInterface, com.sldeditor.common.data.GeoServerLayer)}.
*/
@Test
public void testGeoServerLayerNode() {
FileSystemInterface fileHandler = new DummyFileSystemInput();
GeoServerConnection connection = new GeoServerConnection();
connection.setConnectionName("test connection");
connection.setUserName("test user name");
GeoServerNode node = new GeoServerNode(fileHandler, connection);
assertEquals(connection, node.getConnection());
assertEquals(fileHandler, node.getHandler());
assertEquals(BuiltInDataFlavour.GEOSERVER_DATAITEM_FLAVOUR, node.getDataFlavour());
assertNull(node.getDestinationText());
}
use of com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerNode in project sldeditor by robward-scisys.
the class GeoServerReadProgressTest method testDisconnect.
/**
* Test method for
* {@link com.sldeditor.extension.filesystem.geoserver.GeoServerReadProgress#disconnect(com.sldeditor.common.data.GeoServerConnection)}.
*/
@Test
public void testDisconnect() {
GeoServerReadProgress progress = new GeoServerReadProgress(null, null);
GeoServerOverallNode geoServerRootNode = new GeoServerOverallNode(null);
GeoServerConnection connection = new GeoServerConnection();
connection.setConnectionName("test connection 1");
GeoServerNode node = new GeoServerNode(null, connection);
geoServerRootNode.add(node);
progress.addNewConnectionNode(connection, node);
progress.disconnect(null);
progress.disconnect(connection);
}
Aggregations