diff --git a/src/test/java/org/gcube/portlets/user/td/widgetcommonevent/client/GwtTestWidgetCommonEvent.java b/src/test/java/org/gcube/portlets/user/td/widgetcommonevent/client/GwtTestWidgetCommonEvent.java deleted file mode 100644 index 8dea7f0..0000000 --- a/src/test/java/org/gcube/portlets/user/td/widgetcommonevent/client/GwtTestWidgetCommonEvent.java +++ /dev/null @@ -1,68 +0,0 @@ -package org.gcube.portlets.user.td.widgetcommonevent.client; - -import org.gcube.portlets.user.td.widgetcommonevent.client.event.RibbonEvent; -import org.gcube.portlets.user.td.widgetcommonevent.client.type.RibbonType; -import org.junit.Test; - -import com.google.gwt.junit.client.GWTTestCase; -import com.google.web.bindery.event.shared.SimpleEventBus; - -/** - * Test Event - * - * @author Giancarlo Panichi - * - * - */ -public class GwtTestWidgetCommonEvent { - - /** - * Must refer to a valid module that sources this class. - */ - public String getModuleName() { - return "org.gcube.portlets.user.td.widgetcommonevent.WidgetCommonEventJUnit"; - } - - /** - * Test Events fire - */ - public void testEvents() { - System.out.println("Test Ribbon Event"); - SimpleEventBus eventBus = new SimpleEventBus(); - - eventBus.addHandler(RibbonEvent.TYPE, new RibbonEvent.RibbonEventHandler() { - - public void onRibbon(RibbonEvent event) { - doRibbonCommand(event); - - } - }); - - eventBus.fireEvent(new RibbonEvent(RibbonType.IMPORT_SDMX)); - eventBus.fireEvent(new RibbonEvent(RibbonType.IMPORT_CSV)); - eventBus.fireEvent(new RibbonEvent(RibbonType.IMPORT_JSON)); - - } - - private void doRibbonCommand(RibbonEvent event) { - System.out.println("doRibbonCommand Type: " + event.getRibbonType()); - try { - switch (event.getRibbonType()) { - case IMPORT_SDMX: - System.out.println("Start Import SDMX"); - break; - case IMPORT_CSV: - System.out.println("Start Import CSV"); - break; - case IMPORT_JSON: - System.out.println("Start Import JSON"); - break; - default: - break; - } - } catch (Exception e) { - System.out.println("doRibbonCommand Error : " + e.getLocalizedMessage() + " \n " + e.getMessage()); - } - } - -} diff --git a/src/test/resources/org/gcube/portlets/user/td/widgetcommonevent/WidgetCommonEventJUnit.gwt.xml b/src/test/resources/org/gcube/portlets/user/td/widgetcommonevent/WidgetCommonEventJUnit.gwt.xml deleted file mode 100644 index cb8f832..0000000 --- a/src/test/resources/org/gcube/portlets/user/td/widgetcommonevent/WidgetCommonEventJUnit.gwt.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - -