[ 
https://issues.apache.org/jira/browse/TUSCANY-2928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683835#action_12683835
 ] 

Shu Chao Wan commented on TUSCANY-2928:
---------------------------------------

The patch can refer to Jira 2929. If you want to recreate the problem, you just 
need to comment the method testDummy in class ASM_6031_TestCase as follows. 

/* 
  @Ignore("TUSCANY-2928") 
    public void testDummy() throws Exception { 
    } 
*/
And then run ASM_6031_TestCase as Junit Test.


> [1.x] MustSupply attribute of element Property doesn't take effect [ASM60034]
> -----------------------------------------------------------------------------
>
>                 Key: TUSCANY-2928
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2928
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-1.4
>            Reporter: Shu Chao Wan
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to