cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r546362 - /incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/spring/PolicyFeatureTest.java
Date Tue, 12 Jun 2007 02:57:34 GMT
Author: ningjiang
Date: Mon Jun 11 19:57:34 2007
New Revision: 546362

URL: http://svn.apache.org/viewvc?view=rev&rev=546362
Log:
Moved sf.setStart(false) after configuration(***,sf) in PolicyFeatureTest

Modified:
    incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/spring/PolicyFeatureTest.java

Modified: incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/spring/PolicyFeatureTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/spring/PolicyFeatureTest.java?view=diff&rev=546362&r1=546361&r2=546362
==============================================================================
--- incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/spring/PolicyFeatureTest.java
(original)
+++ incubator/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/spring/PolicyFeatureTest.java
Mon Jun 11 19:57:34 2007
@@ -56,7 +56,7 @@
         JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
         sf.getFeatures().add(new WSPolicyFeature(p));
         sf.setServiceBean(new GreeterImpl());
-        sf.setAddress("http://localhost:9001/test");
+        sf.setAddress("http://localhost/test");
         sf.setStart(false);
         sf.setBus(bus);
         Server server = sf.create();
@@ -78,12 +78,13 @@
         
         JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
         sf.setServiceBean(new GreeterImpl());
-        sf.setAddress("http://localhost:9001/test");
-        sf.setStart(false);
+        sf.setAddress("http://localhost/test");
+        
         sf.setBus(bus);
         
         Configurer c = bus.getExtension(Configurer.class);
         c.configureBean("test", sf);
+        sf.setStart(false);
         
         List<AbstractFeature> features = sf.getFeatures();
         assertEquals(1, features.size());
@@ -107,8 +108,7 @@
         
         JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
         sf.setServiceBean(new GreeterImpl());
-        sf.setAddress("http://localhost:9001/test");
-        sf.setStart(false);
+        sf.setAddress("http://localhost/test");        
         sf.setBus(bus);
         
         Configurer c = bus.getExtension(Configurer.class);
@@ -116,6 +116,7 @@
         
         List<AbstractFeature> features = sf.getFeatures();
         assertEquals(1, features.size());
+        sf.setStart(false);
         
         Server server = sf.create();
         
@@ -136,8 +137,7 @@
         
         JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
         sf.setServiceBean(new GreeterImpl());
-        sf.setAddress("http://localhost:9001/test");
-        sf.setStart(false);
+        sf.setAddress("http://localhost/test");        
         sf.setBus(bus);
         
         Configurer c = bus.getExtension(Configurer.class);
@@ -145,7 +145,7 @@
         
         List<AbstractFeature> features = sf.getFeatures();
         assertEquals(1, features.size());
-        
+        sf.setStart(false);
         Server server = sf.create();
         
         PolicyEngine pe = bus.getExtension(PolicyEngine.class);



Mime
View raw message