Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-523

[jms] No error when createContext is given an invalid SessionMode value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 1.2.0.GA
    • 1.1.0-GA
    • qpid-jms
    • None
    • January 2018

    Description

      The test https://github.com/jdanekrh/jms-reproducers/blob/master/src/test/java/org/apache/activemq/artemis/tests/integration/jms/jms2client/JmsContextTest.java 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() {
            context.createContext(-1);
         }
      
         @Test(expected = JMSRuntimeException.class)
         public void testInvalidSessionModesValue4() {
            context.createContext(4);
         }
      

      with exception

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

      Attachments

        Issue Links

          Activity

            People

              jross@redhat.com Justin Ross
              jdanek@redhat.com Jiri Daněk
              Jiri Daněk Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: