I'm -1 to this as it fixes the wrong thing. We need to find the test that is leaving the bus and make sure the cleanup is done.
Daniel Kulp http://dankulp.com/blog On Dec 27, 2010, at 4:37 AM, [email protected] wrote: > Author: ningjiang > Date: Mon Dec 27 09:37:49 2010 > New Revision: 1053030 > > URL: http://svn.apache.org/viewvc?rev53030&view=rev > Log: > Fix the test failed of PolicyAnnotationTest with JDK1.5 > > Modified: > > cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java > > Modified: > cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java > URL: > http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java?rev53030&r153029&r253030&view=diff > =============================================================================> > --- > cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java > (original) > +++ > cxf/branches/2.3.x-fixes/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyAnnotationTest.java > Mon Dec 27 09:37:49 2010 > @@ -53,6 +53,8 @@ public class PolicyAnnotationTest extend > > @org.junit.Test > public void testAnnotations() throws Exception { > + // Need to clean up the Default Bus instance frist > + BusFactory.setDefaultBus(null); > Bus bus = BusFactory.getDefaultBus(); > JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean(); > factory.setBus(bus); > >
