You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bl...@apache.org on 2001/10/17 18:26:45 UTC

cvs commit: xml-axis/java/test/encoding TestDeser.java

bloritsch    01/10/17 09:26:45

  Modified:    java/test/encoding TestDeser.java
  Log:
  Add failure messages
  
  Revision  Changes    Path
  1.17      +5 -5      xml-axis/java/test/encoding/TestDeser.java
  
  Index: TestDeser.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/encoding/TestDeser.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- TestDeser.java	2001/08/14 03:49:19	1.16
  +++ TestDeser.java	2001/10/17 16:26:45	1.17
  @@ -96,20 +96,20 @@
          message.setMessageContext(new MessageContext(server));
   
          SOAPEnvelope envelope = (SOAPEnvelope)message.getAsSOAPEnvelope();
  -       assertNotNull("envelope", envelope);
  +       assertNotNull("SOAP envelope should not be null", envelope);
   
          RPCElement body = (RPCElement)envelope.getFirstBody();
  -       assertNotNull("body", body);
  +       assertNotNull("SOAP body should not be null", body);
   
          Vector arglist = body.getParams();
          assertNotNull("arglist", arglist);
  -       assertTrue("param.size()>0", arglist.size()>0);
  +       assertTrue("param.size()<=0 {Should be > 0}", arglist.size()>0);
   
          RPCParam param = (RPCParam) arglist.get(0);
  -       assertNotNull("param", param);
  +       assertNotNull("SOAP param should not be null", param);
   
          Object result = param.getValue();
  -       if (!equals(result, expected)) assertEquals(expected, result);
  +       if (!equals(result, expected)) assertEquals("The result is not what is expected.", expected, result);
       }
   
       public void testString() throws Exception {