Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-3645

otest JCA9013 fails to fail for invalid property type

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kgoodson Kelvin Goodson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: