Author: heiko.braun(a)jboss.com
Date: 2006-10-25 07:01:59 -0400 (Wed, 25 Oct 2006)
New Revision: 1306
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java
Log:
Handle expiration times gracefully
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java 2006-10-25
10:55:58 UTC (rev 1305)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/EventingTestCase.java 2006-10-25
11:01:59 UTC (rev 1306)
@@ -97,43 +97,6 @@
}
}
- public void testExpireDatePastMax() throws Exception
- {
- assertWSDLAccess();
-
- //
- // If such a source receives a Subscribe request containing a specific time
expiration,
- // then the request MAY fail; if so, the event source MAY generate a
- // wse:UnsupportedExpirationType fault indicating that an unsupported expiration
type was requested.
- //
-
- AddressingProperties requestProps = AddressingClientUtil.createDefaultProps(
- EventingConstants.SUBSCRIBE_ACTION, eventSourceURI.toString()
- );
- requestProps.setMessageID(AddressingClientUtil.createMessageID());
- setRequestProperties((StubExt)eventSourcePort, requestProps);
-
- SubscribeRequest request = new SubscribeRequest();
- DeliveryType delivery = getDefaultDelivery();
- request.setDelivery(delivery);
- request.setEndTo(delivery.getNotifyTo());
- request.setExpires(new Date(System.currentTimeMillis() +
EventingConstants.MAX_LEASE_TIME + 1000));
- request.setFilter(getDefaultFilter());
-
- try
- {
- SubscribeResponse subscribeResponse = eventSourcePort.subscribe(request);
- fail("Subscription should fail due to exceedd max lease time");
- }
- catch (RemoteException e)
- {
- // ignore expected exception
- }
- catch(Throwable t) {
- fail(t.getMessage()); // can be thrown by AddrConstraintsHandler
- }
- }
-
public void testRenewal() throws Exception {
assertWSDLAccess();
Show replies by date