Repository: qpid-jms Updated Branches: refs/heads/master 87d6ba7cd -> 7335e5547
Ensuse close gets called. Project: http://git-wip-us.apache.org/repos/asf/qpid-jms/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-jms/commit/7335e554 Tree: http://git-wip-us.apache.org/repos/asf/qpid-jms/tree/7335e554 Diff: http://git-wip-us.apache.org/repos/asf/qpid-jms/diff/7335e554 Branch: refs/heads/master Commit: 7335e5547ce5553ada1b16a2092422018fb2ba3b Parents: 87d6ba7 Author: Timothy Bish <[email protected]> Authored: Tue Jan 13 09:07:26 2015 -0500 Committer: Timothy Bish <[email protected]> Committed: Tue Jan 13 09:07:26 2015 -0500 ---------------------------------------------------------------------- .../qpid/jms/discovery/JmsDiscoveryProviderTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-jms/blob/7335e554/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/discovery/JmsDiscoveryProviderTest.java ---------------------------------------------------------------------- diff --git a/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/discovery/JmsDiscoveryProviderTest.java b/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/discovery/JmsDiscoveryProviderTest.java index 627b687..b620451 100644 --- a/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/discovery/JmsDiscoveryProviderTest.java +++ b/qpid-jms-interop-tests/qpid-jms-activemq-tests/src/test/java/org/apache/qpid/jms/discovery/JmsDiscoveryProviderTest.java @@ -17,6 +17,7 @@ package org.apache.qpid.jms.discovery; import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.fail; import java.io.IOException; import java.net.URI; @@ -81,13 +82,19 @@ public class JmsDiscoveryProviderTest { provider.close(); } - @Test(timeout=30000, expected=IllegalStateException.class) + @Test(timeout=30000) public void testStartFailsWithNoListener() throws Exception { URI discoveryUri = new URI("discovery:multicast://default"); Provider provider = DiscoveryProviderFactory.create(discoveryUri); assertNotNull(provider); - provider.start(); + try { + provider.start(); + fail("Should have thrown IllegalStateException"); + } catch (IllegalStateException expected) { + } catch (Exception unexpected) { + fail("Should have thrown IllegalStateException"); + } provider.close(); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
