[jboss-cvs] jbosstest/src/main/org/jboss/test/webservice/jbws349 ...

Heiko Braun hbruan at jboss.com
Fri Jul 21 11:38:51 EDT 2006


  User: hbraun  
  Date: 06/07/21 11:38:51

  Modified:    src/main/org/jboss/test/webservice/jbws349   Tag: Branch_4_0
                        JBWS349TestCase.java ServiceFacadeEndpointImpl.java
  Log:
  Test JBWS-1092
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +8 -5      jbosstest/src/main/org/jboss/test/webservice/jbws349/JBWS349TestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: JBWS349TestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/webservice/jbws349/JBWS349TestCase.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -b -r1.1.2.4 -r1.1.2.5
  --- JBWS349TestCase.java	14 Feb 2006 12:44:52 -0000	1.1.2.4
  +++ JBWS349TestCase.java	21 Jul 2006 15:38:51 -0000	1.1.2.5
  @@ -23,6 +23,7 @@
   
   import javax.naming.InitialContext;
   import javax.xml.rpc.Service;
  +import javax.xml.rpc.Stub;
   
   import junit.framework.Test;
   
  @@ -59,20 +60,22 @@
            Service service = (Service)iniCtx.lookup("java:comp/env/service/ServiceFacade");
            endpoint = (ServiceFacadeEndpoint)service.getPort(ServiceFacadeEndpoint.class);
         }
  +
  +
      }
   
      public void testAssetCreate() throws Exception
      {
  -      Event event = new AssetCreate("id", 1, "templ");
  +      Event event = new AssetCreate("AssetCreate", 1, "templ");
         AssetCreateResult retObj = (AssetCreateResult)endpoint.processEvent(event);
  -      assertEquals("123", retObj.getId());
  +      assertEquals("AssetCreate", retObj.getId());
      }
   
      public void testAssetRead() throws Exception
      {
  -      Event event = new AssetRead("id");
  +      Event event = new AssetRead("AssetRead");
         AssetReadResult retObj = (AssetReadResult)endpoint.processEvent(event);
  -      assertEquals("123", retObj.getId());
  +      assertEquals("AssetRead", retObj.getId());
         assertEquals("body", retObj.getBody());
      }
      
  @@ -80,7 +83,7 @@
      {
         try
         {
  -         Event event = new Event("id");
  +         Event event = new Event("Event");
            endpoint.processEvent(event);
            fail("EventException expected");
         }
  
  
  
  1.1.2.3   +2 -2      jbosstest/src/main/org/jboss/test/webservice/jbws349/ServiceFacadeEndpointImpl.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ServiceFacadeEndpointImpl.java
  ===================================================================
  RCS file: /cvsroot/jboss/jbosstest/src/main/org/jboss/test/webservice/jbws349/ServiceFacadeEndpointImpl.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -b -r1.1.2.2 -r1.1.2.3
  --- ServiceFacadeEndpointImpl.java	1 Dec 2005 15:48:28 -0000	1.1.2.2
  +++ ServiceFacadeEndpointImpl.java	21 Jul 2006 15:38:51 -0000	1.1.2.3
  @@ -35,11 +35,11 @@
         Result res;
         if (event instanceof AssetCreate)
         {
  -         res = new AssetCreateResult("123");
  +         res = new AssetCreateResult(event.getId());
         }
         else if (event instanceof AssetRead)
         {
  -         res = new AssetReadResult("123", "body");
  +         res = new AssetReadResult(event.getId(), "body");
         }
         else
         {
  
  
  



More information about the jboss-cvs-commits mailing list