commented class
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@101760 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5b021caa00
commit
b6c74d562c
|
@ -1,46 +1,46 @@
|
||||||
package org.gcube.portlets.user.workspace.client;
|
//package org.gcube.portlets.user.workspace.client;
|
||||||
|
//
|
||||||
import org.gcube.portlets.user.workspace.shared.FieldVerifier;
|
//import org.gcube.portlets.user.workspace.shared.FieldVerifier;
|
||||||
|
//
|
||||||
import com.google.gwt.junit.client.GWTTestCase;
|
//import com.google.gwt.junit.client.GWTTestCase;
|
||||||
|
//
|
||||||
/**
|
///**
|
||||||
* GWT JUnit <b>integration</b> tests must extend GWTTestCase.
|
// * GWT JUnit <b>integration</b> tests must extend GWTTestCase.
|
||||||
* Using <code>"GwtTest*"</code> naming pattern exclude them from running with
|
// * Using <code>"GwtTest*"</code> naming pattern exclude them from running with
|
||||||
* surefire during the test phase.
|
// * surefire during the test phase.
|
||||||
*
|
// *
|
||||||
* If you run the tests using the Maven command line, you will have to
|
// * If you run the tests using the Maven command line, you will have to
|
||||||
* navigate with your browser to a specific url given by Maven.
|
// * navigate with your browser to a specific url given by Maven.
|
||||||
* See http://mojo.codehaus.org/gwt-maven-plugin/user-guide/testing.html
|
// * See http://mojo.codehaus.org/gwt-maven-plugin/user-guide/testing.html
|
||||||
* for details.
|
// * for details.
|
||||||
*/
|
// */
|
||||||
public class GwtTestWorkspacePortlet extends GWTTestCase {
|
//public class GwtTestWorkspacePortlet 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.workspace.WorkspacePortletJUnit";
|
// return "org.gcube.portlets.user.workspace.WorkspacePortletJUnit";
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
/**
|
// /**
|
||||||
* Tests the FieldVerifier.
|
// * Tests the FieldVerifier.
|
||||||
*/
|
// */
|
||||||
public void testFieldVerifier() {
|
// public void testFieldVerifier() {
|
||||||
assertFalse(FieldVerifier.isValidName(null));
|
// assertFalse(FieldVerifier.isValidName(null));
|
||||||
assertFalse(FieldVerifier.isValidName(""));
|
// assertFalse(FieldVerifier.isValidName(""));
|
||||||
assertFalse(FieldVerifier.isValidName("a"));
|
// assertFalse(FieldVerifier.isValidName("a"));
|
||||||
assertFalse(FieldVerifier.isValidName("ab"));
|
// assertFalse(FieldVerifier.isValidName("ab"));
|
||||||
assertFalse(FieldVerifier.isValidName("abc"));
|
// assertFalse(FieldVerifier.isValidName("abc"));
|
||||||
assertTrue(FieldVerifier.isValidName("abcd"));
|
// 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
|
||||||
* GreetingService and verify the response.
|
// * GreetingService and verify the response.
|
||||||
*/
|
// */
|
||||||
public void testGreetingService() {
|
// public void testGreetingService() {
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
}
|
//}
|
||||||
|
|
Loading…
Reference in New Issue