Author: ngallardo
Date: Thu Jan 24 12:24:03 2008
New Revision: 614976

URL: http://svn.apache.org/viewvc?rev=614976&view=rev
Log:
Make sure to set it back or we'll break anyone else expecting the default.

Modified:
    
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/client/dispatch/InvocationControllerTest.java

Modified: 
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/client/dispatch/InvocationControllerTest.java
URL: 
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/client/dispatch/InvocationControllerTest.java?rev=614976&r1=614975&r2=614976&view=diff
==============================================================================
--- 
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/client/dispatch/InvocationControllerTest.java
 (original)
+++ 
webservices/axis2/trunk/java/modules/jaxws/test/org/apache/axis2/jaxws/client/dispatch/InvocationControllerTest.java
 Thu Jan 24 12:24:03 2008
@@ -4,6 +4,7 @@
 import org.apache.axis2.jaxws.core.controller.InvocationController;
 import org.apache.axis2.jaxws.core.controller.InvocationControllerFactory;
 import org.apache.axis2.jaxws.core.controller.impl.AxisInvocationController;
+import 
org.apache.axis2.jaxws.core.controller.impl.InvocationControllerFactoryImpl;
 import org.apache.axis2.jaxws.registry.FactoryRegistry;
 
 import javax.xml.namespace.QName;
@@ -43,6 +44,9 @@
         Dispatch d = svc.createDispatch(portQname, Source.class, 
Service.Mode.PAYLOAD);
         
         BaseDispatch bd = (BaseDispatch) d;
+        
+        // Set it back to the default so we don't break other tests.
+        FactoryRegistry.setFactory(InvocationControllerFactory.class, new 
InvocationControllerFactoryImpl());
         
         assertTrue("An InvocationController instance was not created", bd.ic 
!= null);
         assertTrue("The default InvocationController type was incorrect.", 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to