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 ");
}