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;
|
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.core.client.GWT;
|
||||||
import com.google.gwt.junit.client.GWTTestCase;
|
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.
|
* Must refer to a valid module that sources this class.
|
||||||
*/
|
*/
|
||||||
public String getModuleName() {
|
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
|
* 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"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<module>
|
<module rename-to="SDMXExportWizardTDJUnit">
|
||||||
<!-- Inherit our applications main module. -->
|
<!-- Inherit our applications main module. -->
|
||||||
<inherits name='org.gcube.portlets.user.SDMXImportWizardTD.SDMXImportWizardTD' />
|
<inherits name='org.gcube.portlets.user.td.gwtservice.TDGWTService' />
|
||||||
|
|
||||||
<!-- Specify the path to any remote services. -->
|
<!-- Specify the path to any remote services. -->
|
||||||
<servlet path="/SDMXImportWizardTD/greet" class="org.gcube.portlets.user.SDMXImportWizardTD.server.GreetingServiceImpl" />
|
<servlet path="/TDGWTService"
|
||||||
|
class="org.gcube.portlets.user.td.gwtservice.server.TDGWTServiceImpl" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Specify the paths for translatable code -->
|
||||||
|
<source path='client' />
|
||||||
</module>
|
</module>
|
Loading…
Reference in New Issue