You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ro...@apache.org on 2015/02/24 19:43:30 UTC
[2/2] qpid-jms git commit: make test more specific
make test more specific
Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/eb01f09b
Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/eb01f09b
Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/eb01f09b
Branch: refs/heads/master
Commit: eb01f09bb07364e4da1e2331166ed9eaa0d8ece8
Parents: 4d97ad5
Author: Robert Gemmell <ro...@apache.org>
Authored: Tue Feb 24 18:37:45 2015 +0000
Committer: Robert Gemmell <ro...@apache.org>
Committed: Tue Feb 24 18:37:45 2015 +0000
----------------------------------------------------------------------
.../org/apache/qpid/jms/consumer/JmsDurableSubscriberTest.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/eb01f09b/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/consumer/JmsDurableSubscriberTest.java
----------------------------------------------------------------------
diff --git a/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/consumer/JmsDurableSubscriberTest.java b/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/consumer/JmsDurableSubscriberTest.java
index 08d82cf..9b540c5 100644
--- a/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/consumer/JmsDurableSubscriberTest.java
+++ b/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/consumer/JmsDurableSubscriberTest.java
@@ -24,6 +24,7 @@ import static org.junit.Assert.fail;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
+import javax.jms.InvalidDestinationException;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageConsumer;
@@ -110,8 +111,8 @@ public class JmsDurableSubscriberTest extends AmqpTestSupport {
try {
session.unsubscribe(name.getMethodName() + "-subscriber");
- fail("Should have thrown a JMSException");
- } catch (JMSException ex) {
+ fail("Should have thrown an InvalidDestinationException");
+ } catch (InvalidDestinationException ide) {
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org