Jiri Danek created QPIDJMS-312: ---------------------------------- Summary: Exception is not thrown when user attempts to create context with invalid session mode value Key: QPIDJMS-312 URL: https://issues.apache.org/jira/browse/QPIDJMS-312 Project: Qpid JMS Issue Type: Bug Components: qpid-jms-client Affects Versions: 0.23.0 Reporter: Jiri Danek Priority: Trivial
Consider Apache ActiveMQ Artemis tests {{org.apache.activemq.artemis.tests.integration.jms.jms2client.JmsContextTest#testInvalidSessionModesValueMinusOne}} and {{#testInvalidSessionModesValue4}} (in the same class). When it is adapted to run with multiple JMS clients, or when run from the standalone reproducer at https://github.com/jdanekrh/jms-reproducers/blob/master/src/test/java/org/apache/activemq/artemis/tests/integration/jms/jms2client/JmsContextTest.java (the standalone reproducer requires a running broker to connect to), the test passes with Core, is skipped on OpenWire (because that is not a JMS 2.0 client) and fails on AMQP protocol (with qpid-jms-client as the JMS library): {noformat} @Test(expected = JMSRuntimeException.class) public void testInvalidSessionModesValueMinusOne() { context.createContext(-1); } @Test(expected = JMSRuntimeException.class) public void testInvalidSessionModesValue4() { context.createContext(4); } {noformat} with exception {noformat} java.lang.AssertionError: Expected exception: javax.jms.JMSRuntimeException {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org