axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-axis/java/test/RPCDispatch TestRPC.java
Date Wed, 17 Oct 2001 18:13:36 GMT
bloritsch    01/10/17 11:13:36

  Modified:    java/test/RPCDispatch TestRPC.java
  Log:
  Add more meaningful messages to tests.
  
  Revision  Changes    Path
  1.22      +7 -7      xml-axis/java/test/RPCDispatch/TestRPC.java
  
  Index: TestRPC.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/RPCDispatch/TestRPC.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- TestRPC.java	2001/08/28 16:00:44	1.21
  +++ TestRPC.java	2001/10/17 18:13:36	1.22
  @@ -80,15 +80,15 @@
           // Extract the response Envelope
           Message message = msgContext.getResponseMessage();
           envelope = (SOAPEnvelope)message.getAsSOAPEnvelope();
  -        assertNotNull("envelope", envelope);
  +        assertNotNull("SOAP envelope was null", envelope);
   
           // Extract the body from the envelope
           body = (RPCElement)envelope.getFirstBody();
  -        assertNotNull("body", body);
  +        assertNotNull("SOAP body was null", body);
   
           // Extract the list of parameters from the body
           Vector arglist = body.getParams();
  -        assertNotNull("arglist", arglist);
  +        assertNotNull("SOAP argument list was null", arglist);
           if (arglist.size()==0) return null;
   
           // Return the first parameter
  @@ -107,7 +107,7 @@
           sr.add(SOAPAction, reverse);
   
           // invoke the service and verify the result
  -        assertEquals("cba", rpc("reverseString", new Object[] {"abc"}));
  +        assertEquals("Did not reverse the string correctly.", "cba", rpc("reverseString",
new Object[] {"abc"}));
       }
   
       /**
  @@ -123,7 +123,7 @@
           // invoke the service and verify the result
           Data input    = new Data(5, "abc", 3);
           Data expected = new Data(3, "cba", 5);
  -        assertEquals(expected, rpc("reverseData", new Object[] {input}));
  +        assertEquals("Did not reverse the data as expected.", expected, rpc("reverseData",
new Object[] {input}));
       }
   
       /**
  @@ -137,7 +137,7 @@
           sr.add(SOAPAction, tgtSvc);
   
           // invoke the service and verify the result
  -        assertEquals(SOAPAction, rpc("targetService", new Object[] {}));
  +        assertEquals("SOAP Action did not equal the targetService.", SOAPAction, rpc("targetService",
new Object[] {}));
       }
   
       /**
  @@ -151,7 +151,7 @@
           sr.add(SOAPAction, echoInt);
   
           // invoke the service and verify the result
  -        assertNull(rpc("echoInt", new Object[] {null}));
  +        assertNull("The result was not null as expected.", rpc("echoInt", new Object[]
{null}));
       }
       
       public static void main(String args[])
  
  
  

Mime
View raw message