Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Java-SCA-1.4
-
None
-
Patch Available
Description
In conformance item ASM60034, it says:
"For a composite used as a component implementation, all properties of components within the composite, where the underlying component implementation specifies "mustSupply=true" for the property, MUST either specify a value for the property or source the value from a composite property. "
In order to verify this item, I create a negative testcase. That is to say, neither specify a value for the property or source the value from a composite property when mustSupply is specified as "true" for the property. Under such situation, an exception or error msg should be prompted. But in fact, nothing happens. So I think attribute "mustSupply=true" doesn't take effect.
------------------------------------------------------------------------
Component Type File: service1Impl61.componenttype
------------------------------------------------------------------------
<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<property name="serviceName" type="xsd:string" mustSupply="true">service61</property>
</componentType>
----------------------------------------------------------------
Composite File : TestComposite62.composite
-----------------------------------------------------------------
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://oasis/tests"
xmlns:sample="http://oasis/tests"
name="TestComposite62">
<service name="Service1" promote="TestComponent1/Service1">
<interface.java interface="test.Service1"></interface.java>
</service>
<component name="TestComponent1">
<implementation.java class="test.service1Impl61"/>
<service name="Service1">
<interface.java interface="test.Service1"></interface.java>
</service>
</component>
</composite>
In the above file, none of property value has been provided.