users@jms-spec.java.net

[jms-spec users] [jsr343-experts] TCK Issue - com.sun.ts.tests.jms.core20.jmsproducerqueuetests.Client.msgPropertiesTest

From: Clebert Suconic <clebert.suconic_at_gmail.com>
Date: Thu, 25 Jul 2013 00:26:58 +0100

Accordingly to the Javadoc, getByteProperty("name") was supposed to throw
two exceptions (i), However the test is asserting for a different
exception. It seems a mistake on the test to me. How should we raise issues
on the TCK?


(i):
Throws:
JMSRuntimeException<file:///Users/clebertsuconic/Desktop/JMS2/jms-2/javax/jms/JMSRuntimeException.html>
-
if the JMS provider fails to get the property value due to some internal
error.MessageFormatRuntimeException<file:///Users/clebertsuconic/Desktop/JMS2/jms-2/javax/jms/MessageFormatRuntimeException.html>
-
if this type conversion is invalid.
(ii):
 try {
                byte value = producer.getByteProperty("TESTDUMMY");
                logMsg("Fail: NumberFormatException should have occurred
for getByteProperty");
                pass = false;
            } catch (java.lang.NumberFormatException np) {
                logMsg("Pass: NumberFormatException as expected ");
            }