use of com.sldeditor.common.filesystem.FileSystemInterface in project sldeditor by robward-scisys.
the class GeoServerStyleNodeTest method testGeoServerLayerNode.
/**
* Test method for {@link com.sldeditor.datasource.extension.filesystem.node.geoserver.GeoServerStyleNode#GeoServerStyleNode(com.sldeditor.common.filesystem.FileSystemInterface)}.
*/
@Test
public void testGeoServerLayerNode() {
FileSystemInterface fileHandler = new DummyFileSystemInput();
GeoServerConnection connection = new GeoServerConnection();
connection.setConnectionName("test connection");
connection.setUserName("test user name");
StyleWrapper styleWrapper = new StyleWrapper("workspace", "layer");
GeoServerStyleNode node = new GeoServerStyleNode(fileHandler, connection, styleWrapper);
assertEquals(fileHandler, node.getHandler());
assertEquals(connection, node.getConnectionData());
assertEquals(styleWrapper, node.getStyle());
assertEquals(BuiltInDataFlavour.GEOSERVER_STYLE_DATAITEM_FLAVOUR, node.getDataFlavour());
assertNull(node.getDestinationText());
}
use of com.sldeditor.common.filesystem.FileSystemInterface in project sldeditor by robward-scisys.
the class FileSystemExtensionTest method testCreateMenus.
/**
* Test method for
* {@link com.sldeditor.extension.filesystem.FileSystemExtension#createMenus(javax.swing.JMenu)}.
*/
@Test
public void testCreateMenus() {
FileSystemExtension fsExt = new FileSystemExtension();
DummyExtension dummyExtension = new DummyExtension();
List<FileSystemInterface> overrideExtensionList = new ArrayList<FileSystemInterface>();
overrideExtensionList.add(dummyExtension);
FileSystemExtensionFactory.override(overrideExtensionList);
fsExt.initialise(null, null);
fsExt.createMenus(null);
}
use of com.sldeditor.common.filesystem.FileSystemInterface in project sldeditor by robward-scisys.
the class FileSystemExtensionTest method testGetExtensionArgPrefix.
/**
* Test method for
* {@link com.sldeditor.extension.filesystem.FileSystemExtension#getExtensionArgPrefix()}.
*/
@Test
public void testGetExtensionArgPrefix() {
FileSystemExtension fsExt = new FileSystemExtension();
DummyExtension dummyExtension = new DummyExtension();
List<FileSystemInterface> overrideExtensionList = new ArrayList<FileSystemInterface>();
overrideExtensionList.add(dummyExtension);
FileSystemExtensionFactory.override(overrideExtensionList);
fsExt.initialise(null, null);
assertEquals("file", fsExt.getExtensionArgPrefix());
}
use of com.sldeditor.common.filesystem.FileSystemInterface in project sldeditor by robward-scisys.
the class FileSystemExtensionTest method testGetName.
/**
* Test method for {@link com.sldeditor.extension.filesystem.FileSystemExtension#getName()}.
*/
@Test
public void testGetName() {
FileSystemExtension fsExt = new FileSystemExtension();
DummyExtension dummyExtension = new DummyExtension();
List<FileSystemInterface> overrideExtensionList = new ArrayList<FileSystemInterface>();
overrideExtensionList.add(dummyExtension);
FileSystemExtensionFactory.override(overrideExtensionList);
fsExt.initialise(null, null);
assertTrue(fsExt.getName() != null);
}
use of com.sldeditor.common.filesystem.FileSystemInterface in project sldeditor by robward-scisys.
the class FileSystemExtensionTest method testGetTooltip.
/**
* Test method for {@link com.sldeditor.extension.filesystem.FileSystemExtension#getTooltip()}.
*/
@Test
public void testGetTooltip() {
FileSystemExtension fsExt = new FileSystemExtension();
DummyExtension dummyExtension = new DummyExtension();
List<FileSystemInterface> overrideExtensionList = new ArrayList<FileSystemInterface>();
overrideExtensionList.add(dummyExtension);
FileSystemExtensionFactory.override(overrideExtensionList);
fsExt.initialise(null, null);
assertTrue(fsExt.getTooltip() != null);
}
Aggregations