OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [NEW ISSUE] Errors in ASM_12013_TestCase artifacts



Raiser:                Mike Edwards

Target:                sca-assembly-1.1-testsuite-cd01.zip

Description:

There are errors in the artifacts relating to the ASM_12013 testcase:

1) ASM_12013_TestCase.java has an incorrect description in its header (does not match the TestCases document)

2) sca-contribution.xml in contribution ASM_12013 has an incorrect description and an incorrect Java import:

<?xml version="1.0" encoding="ASCII"?>
<!-- sca-contribution for testcase ASM_12013
Has content that violates the schema for sca:contribution
-->
<contribution
        xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
        xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903">

        <import namespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903"/>
        <import namespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032" location="General"/>
        <import.java package="test"/>
       
</contribution>

3) TestComposite1.composite in contribution ASM_12013 contains references to Java artifacts when it should be
language independent.


Proposal:

1) Change the header of ASM_12013_TestCase.java as follows:

/**
 * Client for ASM_12013_TestCase
 * Tests that where a contribution has an artifact with an artifact dependency which is resolved
 * via an <import/> declaration to an artifact in a second contribution and the resolved artifact
 * has a further dependency on an artifact that is present in both the original contribution and
 * in the second contribution that the dependency of the resolved artifact is resolved to the
 * artifact in the second contribution
 */

2) Change sca-contribution.xml in ASM_12013 as follows to correct the description, remove the Java import and add a WSDL namespace
import:

<?xml version="1.0" encoding="ASCII"?>
<!-- sca-contribution for testcase ASM_12013 -->
<contribution
        xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
        xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903">

        <import namespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903"/>
        <import namespace="http://docs.oasis-open.org/ns/opencsa/scatests/2009032" location="General"/>
        <import namespace="http://test.sca.oasisopen.org/"/>                                                 <!-- WSDL namespace -->                
       
</contribution>


3) Change TestComposite1.composite in contribution ASM_12013 to use WSDL interfaces and composite implementation,
as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!--
 *
 * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
 * OASIS trademark, IPR and other policies apply.    
 *  
-->
<!--
Tests that where a contribution has an artifact with an artifact dependency which is resolved via an
<import/> declaration to an artifact in a second contribution and the resolved artifact has a further
dependency on an artifact that is present in both the original contribution and in the second contribution
that the dependency of the resolved artifact is resolved to the artifact in the second contribution
-->
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
           targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
           xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903"
           xmlns:test2="http://docs.oasis-open.org/ns/opencsa/scatests/2009032"
           name="TEST_ASM_12013">
           
    <component name="TestClient">
                <implementation.composite name="test:TestClient_0002"/>
                <service name="TestInvocation">
                        <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>
                        <binding.ws/>
                </service>
        <reference name="reference1" target="TEST_ASM_12013TestComponent1/Service1" >
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
        </reference>
        <property name="testName">ASM_12013</property>
    </component>

    <component name="TEST_ASM_12013TestComponent1">
            <!-- Uses a composite as implementation, TestComposite69, which is imported from another contribution (General).
                 The composite in turn depends on a second composite (TestComposite1) which is present both in THIS
                 contribution (ASM_12013) and in the contribution containing the implementation composite.
                 The version in the second contribution is the version that should be used
            -->
                <implementation.composite name="test2:TestComposite69"/>
        <service name="Service1">
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
        </service>
        <property name="serviceName">service1</property>
    </component>

</composite>


Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  
Email:  mike_edwards@uk.ibm.com





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU








[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]