use of com.sldeditor.extension.filesystem.database.DatabaseInput in project sldeditor by robward-scisys.
the class FileSystemExtensionFactory method populateExtensions.
/**
* Populate default file extensions.
*
* @param toolMgr the tool manager
*/
private static void populateExtensions(ToolSelectionInterface toolMgr) {
geoServerInput = new GeoServerInput(toolMgr);
geoServerInput.readPropertyFile();
extensionList.add(geoServerInput);
databaseInput = new DatabaseInput(toolMgr);
databaseInput.readPropertyFile();
extensionList.add(databaseInput);
fileSystemInput = new FileSystemInput(toolMgr);
extensionList.add(fileSystemInput);
}
use of com.sldeditor.extension.filesystem.database.DatabaseInput in project sldeditor by robward-scisys.
the class DatabaseInputTest method testTreeExpanded.
/**
* Test method for {@link com.sldeditor.extension.filesystem.database.DatabaseInput#treeExpanded(java.lang.Object)}.
*/
@Test
public void testTreeExpanded() {
DatabaseInput input = new DatabaseInput(null);
assertFalse(input.treeExpanded(null));
}
use of com.sldeditor.extension.filesystem.database.DatabaseInput in project sldeditor by robward-scisys.
the class DatabaseInputTest method testSetFolder.
/**
* Test method for
* {@link com.sldeditor.extension.filesystem.database.DatabaseInput#setFolder(com.sldeditor.common.data.DatabaseConnection, boolean)}.
*/
@Test
public void testSetFolder() {
DatabaseInput input = new DatabaseInput(null);
// Add some database connections
DatabaseConnection connection1 = DatabaseConnectionFactory.createGeoPackage();
Map<String, String> connectionDataMap = new HashMap<String, String>();
connectionDataMap.put(GeoPkgDataStoreFactory.DATABASE.key, "test.gpkg");
connection1.setConnectionDataMap(connectionDataMap);
input.setFolder(connection1, true);
}
use of com.sldeditor.extension.filesystem.database.DatabaseInput in project sldeditor by robward-scisys.
the class DatabaseInputTest method testRightMouseButton.
/**
* Test method for
* {@link com.sldeditor.extension.filesystem.database.DatabaseInput#rightMouseButton(javax.swing.JPopupMenu, java.lang.Object, java.awt.event.MouseEvent)}.
*/
@Test
public void testRightMouseButton() {
DatabaseInput input = new DatabaseInput(null);
input.rightMouseButton(null, null, null);
}
use of com.sldeditor.extension.filesystem.database.DatabaseInput in project sldeditor by robward-scisys.
the class DatabaseInputTest method testGetDestinationText.
/**
* Test method for {@link com.sldeditor.extension.filesystem.database.DatabaseInput#getDestinationText(com.sldeditor.common.NodeInterface)}.
*/
@Test
public void testGetDestinationText() {
DatabaseInput input = new DatabaseInput(null);
assertEquals("Unknown", input.getDestinationText(null));
}
Aggregations