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/encoding TestDeser.java
Date Wed, 17 Oct 2001 16:26:45 GMT
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 {
  
  
  

Mime
View raw message