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 
 and {{#testInvalidSessionModesValue4}} (in the same class).

When it is adapted to run with multiple JMS clients, or when run from the 
standalone reproducer at 
(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):

   @Test(expected = JMSRuntimeException.class)
   public void testInvalidSessionModesValueMinusOne() {

   @Test(expected = JMSRuntimeException.class)
   public void testInvalidSessionModesValue4() {

with exception

    java.lang.AssertionError: Expected exception: javax.jms.JMSRuntimeException

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to