with failover the reported exception may be wrapped by the failover listener

This commit is contained in:
gtully 2015-12-09 11:26:58 +00:00
parent 7a7c70ad75
commit 9c4ef26d5c
1 changed files with 3 additions and 3 deletions

View File

@ -63,17 +63,17 @@ public class ActiveMQSslConnectionFactoryTest {
executeTest(SSL_TRANSPORT, TRUST_STORE_RESOURCE_PREFIX + TRUST_STORE_FILE_NAME + ".dummy");
}
@Test(expected = ConnectException.class)
@Test(expected = IOException.class)
public void validTrustStoreFileFailoverTest() throws Throwable {
executeTest(FAILOVER_SSL_TRANSPORT, TRUST_STORE_DIRECTORY_NAME + TRUST_STORE_FILE_NAME);
}
@Test(expected = ConnectException.class)
@Test(expected = IOException.class)
public void validTrustStoreURLFailoverTest() throws Throwable {
executeTest(FAILOVER_SSL_TRANSPORT, new File(TRUST_STORE_DIRECTORY_NAME + TRUST_STORE_FILE_NAME).toURI().toString());
}
@Test(expected = ConnectException.class)
@Test(expected = IOException.class)
public void validTrustStoreResourceFailoverTest() throws Throwable {
executeTest(FAILOVER_SSL_TRANSPORT, TRUST_STORE_RESOURCE_PREFIX + TRUST_STORE_FILE_NAME);
}