Search in sources :

Example 11 with DataSourceConnector

use of com.sldeditor.datasource.connector.instance.DataSourceConnector in project sldeditor by robward-scisys.

the class DataSourceConnectorTest method testIsEmpty.

/**
 * Test method for {@link com.sldeditor.datasource.connector.instance.DataSourceConnector#isEmpty()}.
 */
@Test
public void testIsEmpty() {
    DataSourceConnector dsc = new DataSourceConnector();
    assertFalse(dsc.isEmpty());
}
Also used : DataSourceConnector(com.sldeditor.datasource.connector.instance.DataSourceConnector) Test(org.junit.Test)

Example 12 with DataSourceConnector

use of com.sldeditor.datasource.connector.instance.DataSourceConnector in project sldeditor by robward-scisys.

the class DataSourcePropertiesTest method testPopulate.

/**
 * Test method for {@link com.sldeditor.datasource.impl.DataSourceProperties#populate()}.
 */
@Test
public void testPopulate() {
    DataSourceProperties dsp = new DataSourceProperties(null);
    dsp.populate();
    // Does nothing
    DataSourceConnectorInterface dsc = new DataSourceConnector();
    dsp = new DataSourceProperties(dsc);
    dsp.populate();
}
Also used : DataSourceConnector(com.sldeditor.datasource.connector.instance.DataSourceConnector) DataSourceConnectorInterface(com.sldeditor.common.DataSourceConnectorInterface) DataSourceProperties(com.sldeditor.datasource.impl.DataSourceProperties) Test(org.junit.Test)

Aggregations

DataSourceConnector (com.sldeditor.datasource.connector.instance.DataSourceConnector)12 Test (org.junit.Test)11 DataSourceProperties (com.sldeditor.datasource.impl.DataSourceProperties)5 HashMap (java.util.HashMap)5 DataSourceConnectorInterface (com.sldeditor.common.DataSourceConnectorInterface)3 DataSourcePropertiesInterface (com.sldeditor.common.DataSourcePropertiesInterface)3 SLDData (com.sldeditor.common.data.SLDData)1 StyleWrapper (com.sldeditor.common.data.StyleWrapper)1 SLDEditorFile (com.sldeditor.datasource.SLDEditorFile)1 DataSourceConnectorEmpty (com.sldeditor.datasource.connector.instance.DataSourceConnectorEmpty)1 File (java.io.File)1 Map (java.util.Map)1 DocumentBuilder (javax.xml.parsers.DocumentBuilder)1 DocumentBuilderFactory (javax.xml.parsers.DocumentBuilderFactory)1 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)1 Document (org.w3c.dom.Document)1 Element (org.w3c.dom.Element)1