Search in sources :

Example 11 with CreateSequenceResponseType

use of org.apache.cxf.ws.rm.v200502.CreateSequenceResponseType in project cxf by apache.

the class ServantTest method verifyCreateSequenceExpiresSetAtSource.

private void verifyCreateSequenceExpiresSetAtSource(Servant servant, RMManager manager) throws SequenceFault {
    DestinationPolicyType dp = RMMANGER_FACTORY.createDestinationPolicyType();
    AcksPolicyType ap = RMMANGER_FACTORY.createAcksPolicyType();
    dp.setAcksPolicy(ap);
    manager.setDestinationPolicy(dp);
    Expires expires = new Expires();
    expires.setValue(DURATION_SHORT);
    Message message = createTestCreateSequenceMessage(expires, null);
    CreateSequenceResponseType csr = (CreateSequenceResponseType) servant.createSequence(message);
    Expires expires2 = csr.getExpires();
    assertNotNull(expires2);
    assertEquals(DURATION_SHORT, expires2.getValue());
}
Also used : AcksPolicyType(org.apache.cxf.ws.rm.manager.AcksPolicyType) Message(org.apache.cxf.message.Message) DestinationPolicyType(org.apache.cxf.ws.rm.manager.DestinationPolicyType) Expires(org.apache.cxf.ws.rm.v200502.Expires) CreateSequenceResponseType(org.apache.cxf.ws.rm.v200502.CreateSequenceResponseType)

Aggregations

Message (org.apache.cxf.message.Message)8 CreateSequenceResponseType (org.apache.cxf.ws.rm.v200702.CreateSequenceResponseType)7 DestinationPolicyType (org.apache.cxf.ws.rm.manager.DestinationPolicyType)5 AcksPolicyType (org.apache.cxf.ws.rm.manager.AcksPolicyType)4 CreateSequenceResponseType (org.apache.cxf.ws.rm.v200502.CreateSequenceResponseType)4 Expires (org.apache.cxf.ws.rm.v200502.Expires)4 AddressingProperties (org.apache.cxf.ws.addressing.AddressingProperties)3 Endpoint (org.apache.cxf.endpoint.Endpoint)2 Exchange (org.apache.cxf.message.Exchange)2 EndpointReferenceType (org.apache.cxf.ws.addressing.EndpointReferenceType)2 RMMessage (org.apache.cxf.ws.rm.persistence.RMMessage)2 Test (org.junit.Test)2 Method (java.lang.reflect.Method)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 Duration (javax.xml.datatype.Duration)1 Binding (org.apache.cxf.binding.Binding)1 Fault (org.apache.cxf.interceptor.Fault)1 ExchangeImpl (org.apache.cxf.message.ExchangeImpl)1