cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1489818 - in /cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm: RMManagerConfigurationTest.java feature.xml
Date Wed, 05 Jun 2013 11:34:37 GMT
Author: ay
Date: Wed Jun  5 11:34:37 2013
New Revision: 1489818

URL: http://svn.apache.org/r1489818
Log:
add a beans example for ws-rm maxRetry

Modified:
    cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/RMManagerConfigurationTest.java
    cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/feature.xml

Modified: cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/RMManagerConfigurationTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/RMManagerConfigurationTest.java?rev=1489818&r1=1489817&r2=1489818&view=diff
==============================================================================
--- cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/RMManagerConfigurationTest.java
(original)
+++ cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/RMManagerConfigurationTest.java
Wed Jun  5 11:34:37 2013
@@ -24,6 +24,7 @@ import java.util.Collection;
 import org.apache.cxf.Bus;
 import org.apache.cxf.BusFactory;
 import org.apache.cxf.bus.spring.SpringBusFactory;
+import org.apache.cxf.ws.rm.manager.RetryPolicyType;
 import org.apache.cxf.ws.rm.persistence.RMMessage;
 import org.apache.cxf.ws.rm.persistence.RMStore;
 import org.apache.cxf.ws.rm.v200702.Identifier;
@@ -72,6 +73,11 @@ public class RMManagerConfigurationTest 
         bus = factory.createBus("org/apache/cxf/ws/rm/feature.xml");
         RMManager manager = bus.getExtension(RMManager.class);
         verifyManager(manager);
+
+        // verify additional properties not verified by verifyManager.
+        RetryPolicyType rmrp = manager.getSourcePolicy().getRetryPolicy();
+        assertNotNull(rmrp);
+        assertEquals(3, rmrp.getMaxRetries());
     }
     
     private void verifyManager(RMManager manager) {

Modified: cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/feature.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/feature.xml?rev=1489818&r1=1489817&r2=1489818&view=diff
==============================================================================
--- cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/feature.xml (original)
+++ cxf/trunk/rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/feature.xml Wed Jun  5 11:34:37
2013
@@ -41,6 +41,7 @@ http://www.springframework.org/schema/be
                 </wsrm-mgr:deliveryAssurance>
                 <wsrm-mgr:sourcePolicy>
                     <wsrm-mgr:sequenceTerminationPolicy terminateOnShutdown="true"/>
                   
+                    <wsrm-mgr:retryPolicy maxRetries="3" />                    
                 </wsrm-mgr:sourcePolicy>
                 <wsrm-mgr:destinationPolicy>
                     <wsrm-mgr:acksPolicy ImmediaAcksTimeout="2000" intraMessageThreshold="0"/>
                   



Mime
View raw message