otest JCA9013 fails to fail for invalid property type
-----------------------------------------------------
Key: TUSCANY-3645
URL: https://issues.apache.org/jira/browse/TUSCANY-3645
Project: Tuscany
Issue Type: Bug
Reporter: Kelvin Goodson
Test assertion JCA-TA-9033 requires the line of code ...
componentContext.getProperty(HashSet.class, "floatProperty");
... to fail with an IllegalArgumentException. The property value set is
expressed as a DOM with type xsd:float. The line of code does not throw an
exception, but returns an empty HashSet. I discussed this with Mike Edwards
who reconsidered whether HashSet was the best complex type to provoke the
failure, since it may be considered correct in the case of such collection
types that are inherently generic to create a collection of
HashSet<propertyType> containing the property value. (Note that the code does
not do this, but only returns and empty HashSet, so we have a problem anyway)
I tried the modified test with Date.class, but the modified line of code
persisted in failing to throw an exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.