You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by se...@apache.org on 2008/11/20 11:14:38 UTC

svn commit: r719207 - /cxf/branches/2.0.x-fixes/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JAXWSMethodInvokerTest.java

Author: sergeyb
Date: Thu Nov 20 02:14:38 2008
New Revision: 719207

URL: http://svn.apache.org/viewvc?rev=719207&view=rev
Log:
Fixing JAXWSMethodInvokerTest

Modified:
    cxf/branches/2.0.x-fixes/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JAXWSMethodInvokerTest.java

Modified: cxf/branches/2.0.x-fixes/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JAXWSMethodInvokerTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JAXWSMethodInvokerTest.java?rev=719207&r1=719206&r2=719207&view=diff
==============================================================================
--- cxf/branches/2.0.x-fixes/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JAXWSMethodInvokerTest.java (original)
+++ cxf/branches/2.0.x-fixes/rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/JAXWSMethodInvokerTest.java Thu Nov 20 02:14:38 2008
@@ -24,12 +24,11 @@
 import org.apache.cxf.frontend.MethodDispatcher;
 import org.apache.cxf.jaxws.service.Hello;
 import org.apache.cxf.message.Exchange;
-import org.apache.cxf.service.invoker.ScopePolicy;
 import org.apache.cxf.message.Message;
 import org.apache.cxf.message.MessageContentsList;
 import org.apache.cxf.message.MessageImpl;
 import org.apache.cxf.service.Service;
-import org.apache.cxf.service.invoker.Factory;
+import org.apache.cxf.service.invoker.ScopePolicy;
 import org.apache.cxf.service.model.BindingOperationInfo;
 import org.easymock.classextension.EasyMock;
 import org.junit.Assert;
@@ -49,9 +48,10 @@
         JAXWSMethodInvoker jaxwsMethodInvoker = new JAXWSMethodInvoker(factory);
         Exchange ex = EasyMock.createMock(Exchange.class);               
         Object object = jaxwsMethodInvoker.getServiceObject(ex);
-        assertEquals("the target object and service object should be equal ", object, target);
+        Assert.assertEquals("the target object and service object should be equal ", object, target);
         EasyMock.verify(factory);
     }
+
         
 
     @Test
@@ -62,9 +62,8 @@
         ContinuationService serviceObject = 
             new ContinuationService(originalException);
         EasyMock.reset(factory);
-        factory.create(ex);
+        factory.create();
         EasyMock.expectLastCall().andReturn(serviceObject);
-        factory.release(ex, serviceObject);
         EasyMock.expectLastCall();
         EasyMock.replay(factory);