Author: heiko.braun(a)jboss.com
Date: 2006-10-25 07:02:35 -0400 (Wed, 25 Oct 2006)
New Revision: 1307
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java
Log:
Handle expiration times gracefully
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java
===================================================================
---
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java 2006-10-25
11:01:59 UTC (rev 1306)
+++
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/wseventing/SubscriptionManagerTestCase.java 2006-10-25
11:02:35 UTC (rev 1307)
@@ -134,20 +134,6 @@
}
}
- public void testExceedsMaxLeaseTime() throws Exception
- {
- try
- {
- Date expires = new Date(System.currentTimeMillis() +
EventingConstants.MAX_LEASE_TIME + 5000);
- subscriptionManager.subscribe(eventSourceNS, eventSinkEndpoint,
eventSinkEndpoint, expires, null);
- fail("Expiration time exceeds lease limit");
- }
- catch (Exception e)
- {
- // ignore expected exception
- }
- }
-
/**
* If the expression evaluates to false for a notification,
* the notification MUST NOT be sent to the event sink.
Show replies by date