User: cgjung  
  Date: 02/03/12 03:04:47

  Modified:    jboss.net/testsuite/src/main/org/jboss/test/net/addr
                        AddrUnitTestCase.java
  Removed:     jboss.net/testsuite/src/main/org/jboss/test/net/addr
                        AddressBook.java
  Log:
  Axis Beta RC1 is here. Needs no more to be patched for integrating with the
  jboss classloading architecture. Lots of interna have changed, though.
  
  Adapted the deployment descriptors to support WSDD now.
  
  Revision  Changes    Path
  1.3       +31 -9     
contrib/jboss.net/testsuite/src/main/org/jboss/test/net/addr/AddrUnitTestCase.java
  
  Index: AddrUnitTestCase.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/contrib/jboss.net/testsuite/src/main/org/jboss/test/net/addr/AddrUnitTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AddrUnitTestCase.java     16 Oct 2001 15:52:57 -0000      1.2
  +++ AddrUnitTestCase.java     12 Mar 2002 11:04:47 -0000      1.3
  @@ -5,16 +5,17 @@
    * See terms of license at gnu.org.
    */
   
  -// $Id: AddrUnitTestCase.java,v 1.2 2001/10/16 15:52:57 cgjung Exp $
  +// $Id: AddrUnitTestCase.java,v 1.3 2002/03/12 11:04:47 cgjung Exp $
   
   package org.jboss.test.net.addr;
   
   import samples.addr.Address;
  -import samples.addr.PhoneNumber;
  +import samples.addr.AddressBook;
  +import samples.addr.Phone;
  +import samples.addr.StateType;
   
   import org.jboss.net.axis.AxisInvocationHandler;
   
  -
   import org.jboss.test.net.AxisTestCase;
   
   import junit.framework.Test;
  @@ -25,11 +26,13 @@
    * Tests remote accessibility of "ordinary" Axis services
    * @created 11. Oktober 2001
    * @author <a href="mailto:[EMAIL PROTECTED]";>Christoph G. Jung</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   
   public class AddrUnitTestCase extends AxisTestCase {
       
  +   protected String ADDRESS_END_POINT=END_POINT+"/AddressBook";
  +   
       // Constructors --------------------------------------------------
       public AddrUnitTestCase(String name)
      {
  @@ -46,11 +49,30 @@
   
          interfaceMap.put(AddressBook.class,"urn:AddressFetcher2");
          
  -       address=new Address(42, "Milky Way", "Galactic City", "Alien Nation",
  -                   2121, new PhoneNumber(49,"(0)6897","6666"));
  +       Phone phone=new Phone();
  +       
  +       phone.setExchange("(0)6897");
  +       phone.setNumber("6666");
  +       phone.setAreaCode(49);
  +       
  +       StateType state=StateType.fromString("TX");
  +       
  +       address=new Address();
  +       
  +       address.setStreetNum(42);
  +       
  +       address.setStreetName("Milky Way");
  +       
  +       address.setCity("Galactic City");
  +       
  +       address.setZip(2121);
  +       
  +       address.setState(state);
  +       
  +       address.setPhoneNumber(phone);
          
          book=(AddressBook) createAxisService(AddressBook.class,
  -                new URL(END_POINT));
  +                new URL(ADDRESS_END_POINT));
      }
          
      /** this is where the axis config is stored */
  @@ -61,8 +83,8 @@
      /** routes an address to the server and tests the result */
      public void testAddress() throws Exception {
           book.addEntry ("George",address);
  -        assertEquals("Comparing addresses",address.toString(),book.
  -            getAddressFromName ("George").toString());
  +        assertEquals("Comparing addresses",address,book.
  +            getAddressFromName ("George"));
      }
      
      /** suite method */
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to