Fixed Test
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-sdmx-export-widget@84574 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
1bda19f466
commit
89262eba2b
|
@ -1,6 +1,5 @@
|
|||
package org.gcube.portlets.user.td.sdmxexportwidget.client;
|
||||
|
||||
import org.gcube.portlets.user.td.sdmxexportwidget.shared.FieldVerifier;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.junit.client.GWTTestCase;
|
||||
|
@ -23,20 +22,9 @@ public class GwtTestSDMXExportWizardTD extends GWTTestCase {
|
|||
* Must refer to a valid module that sources this class.
|
||||
*/
|
||||
public String getModuleName() {
|
||||
return "org.gcube.portlets.user.SDMXImportWizardTD.SDMXImportWizardTDJUnit";
|
||||
return "org.gcube.portlets.user.td.sdmxexportwidget.SDMXExportWizardTDJUnit";
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests the FieldVerifier.
|
||||
*/
|
||||
public void testFieldVerifier() {
|
||||
assertFalse(FieldVerifier.isValidName(null));
|
||||
assertFalse(FieldVerifier.isValidName(""));
|
||||
assertFalse(FieldVerifier.isValidName("a"));
|
||||
assertFalse(FieldVerifier.isValidName("ab"));
|
||||
assertFalse(FieldVerifier.isValidName("abc"));
|
||||
assertTrue(FieldVerifier.isValidName("abcd"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This test will send a request to the server using the greetServer method in
|
||||
|
|
|
@ -1,9 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module>
|
||||
<!-- Inherit our applications main module. -->
|
||||
<inherits name='org.gcube.portlets.user.SDMXImportWizardTD.SDMXImportWizardTD' />
|
||||
<module rename-to="SDMXExportWizardTDJUnit">
|
||||
<!-- Inherit our applications main module. -->
|
||||
<inherits name='org.gcube.portlets.user.td.gwtservice.TDGWTService' />
|
||||
|
||||
<!-- Specify the path to any remote services. -->
|
||||
<servlet path="/SDMXImportWizardTD/greet" class="org.gcube.portlets.user.SDMXImportWizardTD.server.GreetingServiceImpl" />
|
||||
<!-- Specify the path to any remote services. -->
|
||||
<servlet path="/TDGWTService"
|
||||
class="org.gcube.portlets.user.td.gwtservice.server.TDGWTServiceImpl" />
|
||||
|
||||
</module>
|
||||
|
||||
<!-- Specify the paths for translatable code -->
|
||||
<source path='client' />
|
||||
</module>
|
Loading…
Reference in New Issue