Search in sources :

Example 1 with SLDEditorInterface

use of com.sldeditor.common.SLDEditorInterface in project sldeditor by robward-scisys.

the class SLDEditorMenusTest method testSLDEditorMenus.

/**
 * Test method for {@link com.sldeditor.ui.menu.SLDEditorMenus#SLDEditorMenus(com.sldeditor.common.SLDEditorInterface)}.
 */
@Test
public void testSLDEditorMenus() {
    SLDEditorMenus.createMenus(null, null);
    SLDEditorMenus.destroyInstance();
    SLDEditorInterface application = new SLDEditorInterface() {

        @Override
        public JPanel getAppPanel() {
            return null;
        }

        @Override
        public void updateWindowTitle(boolean dataEditedFlag) {
        }

        @Override
        public void chooseNewSLD() {
        }

        @Override
        public void exitApplication() {
        }

        @Override
        public void saveFile(URL url) {
        }

        @Override
        public void saveSLDData(SLDDataInterface sldData) {
        }

        @Override
        public LoadSLDInterface getLoadSLDInterface() {
            return null;
        }

        @Override
        public JFrame getApplicationFrame() {
            return null;
        }

        @Override
        public void openFile(URL selectedURL) {
        }

        @Override
        public String getAppName() {
            return null;
        }

        @Override
        public void refreshPanel(Class<?> parent, Class<?> panelClass) {
        }
    };
    SLDEditorMenus.createMenus(application, null);
    SLDEditorMenus.destroyInstance();
    SLDEditorMenus.createMenus(application, new ArrayList<ExtensionInterface>());
    SLDEditorMenus.destroyInstance();
    EnvironmentVariableManager.destroyInstance();
    SLDEditorFile.destroyInstance();
    VendorOptionManager.destroyInstance();
    UndoManager.destroyInstance();
}
Also used : SLDEditorInterface(com.sldeditor.common.SLDEditorInterface) SLDDataInterface(com.sldeditor.common.SLDDataInterface) ExtensionInterface(com.sldeditor.extension.ExtensionInterface) URL(java.net.URL) Test(org.junit.Test)

Aggregations

SLDDataInterface (com.sldeditor.common.SLDDataInterface)1 SLDEditorInterface (com.sldeditor.common.SLDEditorInterface)1 ExtensionInterface (com.sldeditor.extension.ExtensionInterface)1 URL (java.net.URL)1 Test (org.junit.Test)1