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 gd...@apache.org on 2002/03/11 06:03:30 UTC

cvs commit: xml-axis/java/test/wsdl/interop3/compound1 Compound1TestCase.java

gdaniels    02/03/10 21:03:30

  Modified:    java/test/wsdl/interop3/compound1 Compound1TestCase.java
  Log:
  Use equals method to check equality, and run echoPerson test too.
  
  Revision  Changes    Path
  1.5       +11 -2     xml-axis/java/test/wsdl/interop3/compound1/Compound1TestCase.java
  
  Index: Compound1TestCase.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/interop3/compound1/Compound1TestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Compound1TestCase.java	28 Feb 2002 17:58:51 -0000	1.4
  +++ Compound1TestCase.java	11 Mar 2002 05:03:30 -0000	1.5
  @@ -1,6 +1,7 @@
   package test.wsdl.interop3.compound1;
   
   import test.wsdl.interop3.compound1.xsd.Document;
  +import test.wsdl.interop3.compound1.xsd.Person;
   
   import java.net.URL;
   
  @@ -54,8 +55,16 @@
               doc.setID("myID");
               Document newDoc = binding.echoDocument(doc);
   
  -            assertEquals("Step 3 IDs didn't match!", doc.getID(), newDoc.getID());
  -            assertEquals("Step 3 values didn't match!", doc.getValue(), newDoc.getValue());
  +            assertEquals("Documents didn't match!", newDoc, doc);
  +
  +            Person person = new Person();
  +            person.setAge(33);
  +            person.setMale(true);
  +            person.setName("Frodo");
  +            person.setID(2.345F);
  +            Person newPerson = binding.echoPerson(person);
  +
  +            assertEquals("Returned Person didn't match!", newPerson, person);
           }
           catch (java.rmi.RemoteException re) {
               throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);