Search in sources :

Example 6 with GeoServerOverallNode

use of com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerOverallNode 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);
}
Also used : GeoServerOverallNode(com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerOverallNode) GeoServerNode(com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerNode) GeoServerConnection(com.sldeditor.common.data.GeoServerConnection) GeoServerReadProgress(com.sldeditor.extension.filesystem.geoserver.GeoServerReadProgress) Test(org.junit.Test)

Aggregations

GeoServerOverallNode (com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerOverallNode)6 Test (org.junit.Test)6 GeoServerConnection (com.sldeditor.common.data.GeoServerConnection)5 GeoServerNode (com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerNode)5 GeoServerReadProgress (com.sldeditor.extension.filesystem.geoserver.GeoServerReadProgress)4 GeoServerLayer (com.sldeditor.common.data.GeoServerLayer)1 StyleWrapper (com.sldeditor.common.data.StyleWrapper)1 FileSystemInterface (com.sldeditor.common.filesystem.FileSystemInterface)1 HashMap (java.util.HashMap)1 List (java.util.List)1