Author: kono
Date: 2012-04-17 14:45:36 -0700 (Tue, 17 Apr 2012)
New Revision: 28865

Modified:
   
core3/api/trunk/webservice-api/src/test/java/org/cytoscape/webservice/AbstractWebServiceClientTest.java
   
core3/api/trunk/webservice-api/src/test/java/org/cytoscape/webservice/client/AbstractClientTest.java
Log:
refs #864 Some unit tests had been added.

Modified: 
core3/api/trunk/webservice-api/src/test/java/org/cytoscape/webservice/AbstractWebServiceClientTest.java
===================================================================
--- 
core3/api/trunk/webservice-api/src/test/java/org/cytoscape/webservice/AbstractWebServiceClientTest.java
     2012-04-17 21:10:50 UTC (rev 28864)
+++ 
core3/api/trunk/webservice-api/src/test/java/org/cytoscape/webservice/AbstractWebServiceClientTest.java
     2012-04-17 21:45:36 UTC (rev 28865)
@@ -26,6 +26,7 @@
                assertEquals(locationUri, serviceLocation);
        }
 
+
        @Test
        public void testGetDisplayName() {
                final String displayName = client.getDisplayName();

Modified: 
core3/api/trunk/webservice-api/src/test/java/org/cytoscape/webservice/client/AbstractClientTest.java
===================================================================
--- 
core3/api/trunk/webservice-api/src/test/java/org/cytoscape/webservice/client/AbstractClientTest.java
        2012-04-17 21:10:50 UTC (rev 28864)
+++ 
core3/api/trunk/webservice-api/src/test/java/org/cytoscape/webservice/client/AbstractClientTest.java
        2012-04-17 21:45:36 UTC (rev 28865)
@@ -7,7 +7,9 @@
 import org.cytoscape.work.Task;
 import org.cytoscape.work.TaskIterator;
 import org.junit.Before;
+import org.junit.Test;
 
+import static org.junit.Assert.*;
 import static org.mockito.Mockito.*;
 
 public class AbstractClientTest extends AbstractWebServiceClientTest {
@@ -22,6 +24,16 @@
                client = new DummyClient(uriString, displayName, description);
        }
        
+       @Test(expected=IllegalArgumentException.class)
+       public void testConstructor() throws Exception {
+               client = new DummyClient("123()    69&&&6 *!", displayName, 
description);
+       }
+       
+       @Test
+       public void testToString() {
+               assertEquals(this.displayName, client.toString());
+       }
+       
        private final class DummyClient extends AbstractWebServiceClient {
 
                private Task mockTask = mock(Task.class);

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to