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();
}
Aggregations