NO-JIRA fixing test

This commit is contained in:
Clebert Suconic 2017-08-19 12:44:50 -04:00
parent 8966b599c4
commit 4f8b4d054d
1 changed files with 8 additions and 1 deletions

View File

@ -58,7 +58,14 @@ public class SessionMetadataAddExceptionTest extends JMSTestBase {
@Test(timeout = 5000, expected = JMSException.class)
public void testInvalidClientIdSetConnection() throws Exception {
Connection con = cf.createConnection();
con.setClientID("invalid");
try {
con.setClientID("invalid");
} finally {
try {
con.close();
} catch (Exception ignored) {
}
}
}
@Test(timeout = 5000, expected = JMSException.class)