TestCases for the SCA Assembly Model Version 1.1 Specification

Committee Draft 01 / Public Review Draft 01

16 June 2009

Specification URIs:

This Version:

http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-testcases-cd01.html

http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-testcases-cd01.odt

http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-testcases-cd01.pdf (Authoritative)

Previous Version:

Latest Version:

http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-testcases.html

http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-testcases.odt

http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-testcases.pdf (Authoritative)

Technical Committee:

OASIS Service Component Architecture / Assembly (SCA-Assembly) TC

Chair(s):

Martin Chapman, Oracle
Mike Edwards, IBM

Editor(s):

Mike Edwards, IBM
Eric Wells, Hitachi
Plamen Pavlov, SAP

Related Work:

The Test Suite artifacts relating to this document can be found here:
http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-testcases-cd01.zip

This document is related to:

Declared XML Namespace(s):

http://docs.oasis-open.org/ns/opencsa/scatests/200903

http://docs.oasis-open.org/ns/opencsa/scatests/2009032
http://docs.oasis-open.org/ns/opencsa/scatests/bpel/200903
http://test.sca.oasisopen.org/

Abstract:

This document defines the TestCases for the SCA Assembly specification.

The TestCases represent a series of tests that an SCA runtime must pass in order to claim conformance to the requirements of the SCA Assembly specification.

Status:

This document was last revised or approved by the OASIS Service Component Architecture / Assembly (SCA-Assembly) TC on the above date. The level of approval is also listed above. Check the “Latest Version” or “Latest Approved Version” location noted above for possible later revisions of this document.

Technical Committee members should send comments on this specification to the Technical Committee’s email list. Others should send comments to the Technical Committee by using the “Send A Comment” button on the Technical Committee’s web page at http://www.oasis-open.org/committees/sca-assembly/.

For information on whether any patents have been disclosed that may be essential to implementing this specification, and any offers of patent licensing terms, please refer to the Intellectual Property Rights section of the Technical Committee web page (http://www.oasis-open.org/committees/sca-assembly/ipr.php.

The non-normative errata page for this specification is located at

http://www.oasis-open.org/committees/sca-assembly/


Notices

Copyright © OASIS® 2009. All Rights Reserved.

All capitalized terms in the following text have the meanings assigned to them in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The full Policy may be found at the OASIS website.

This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published, and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this section are included on all such copies and derivative works. However, this document itself may not be modified in any way, including by removing the copyright notice or references to OASIS, except as needed for the purpose of developing any document or deliverable produced by an OASIS Technical Committee (in which case the rules applicable to copyrights, as set forth in the OASIS IPR Policy, must be followed) or as required to translate it into languages other than English.

The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.

This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

OASIS requests that any OASIS Party or any other party that believes it has patent claims that would necessarily be infringed by implementations of this OASIS Committee Specification or OASIS Standard, to notify OASIS TC Administrator and provide an indication of its willingness to grant patent licenses to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification.

OASIS invites any party to contact the OASIS TC Administrator if it is aware of a claim of ownership of any patent claims that would necessarily be infringed by implementations of this specification by a patent holder that is not willing to provide a license to such patent claims in a manner consistent with the IPR Mode of the OASIS Technical Committee that produced this specification. OASIS may include such claims on its website, but disclaims any obligation to do so.

OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS' procedures with respect to rights in any document or deliverable produced by an OASIS Technical Committee can be found on the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this OASIS Committee Specification or OASIS Standard, can be obtained from the OASIS TC Administrator. OASIS makes no representation that any information or list of intellectual property rights will at any time be complete, or that any claims in such list are, in fact, Essential Claims.

The names "OASIS", [insert specific trademarked names, abbreviations, etc. here] are trademarks of OASIS, the owner and developer of this specification, and should be used only to refer to the organization and its official outputs. OASIS welcomes reference to, and implementation and use of, specifications, while reserving the right to enforce its marks against misleading uses. Please see http://www.oasis-open.org/who/trademark.php for above guidance.



Table of Contents

1 Introduction 5

1.1 TestCase Structure 5

1.2 Namespaces and Java Package Names 7

1.3 Terminology 7

1.4 Normative References 7

1.5 Non-normative References 8

2 TestCases 9

2.1 Section 4 9

2.2 Section 5 13

2.3 Section 6 31

2.4 Section 7 47

2.5 Section 8 52

2.6 Section 9 62

2.7 Section 10 64

2.8 Section 12 66

2.9 Section 13 73

2.10 Section 14 77

3 Cross Mapping of Test Assertions to TestCases 78

4 Catalog of Test Artifacts 85

4.1 Composite Files - lower level 85

4.2 Constraint Files 90

4.3 Java Interfaces 91

4.4 Java Implementation Classes 92

4.5 WSDL Interface Files 94

5 Conformance 96



1 Introduction

This document defines the TestCases for the SCA Assembly specification.

The tests described in this document are related to the Test Assertions described in the SCA Assembly Test Assertions document [ASM-TA].

1.1 TestCase Structure

The SCA Assembly testcases follow a standard structure. They are divided into two main parts:

  1. Test Client, which drives the test and checks that the results are as expected

  2. Test Application, which forms the bulk of the testcase and which consists of Composites, WSDL files, XSDs and code artifacts such as Java classes, organized into a series of SCA contributions

The basic idea is that the Test Application runs on the SCA runtime that is under test, while the Test Client runs as a standalone application, invoking the Test Application through one or more service interfaces.

Test Client

The test client is designed as a standalone application. The version built here is a Java application which uses the JUnit test framework, although in principle, the client could be built using another implementation technology.

The test client is structured to contain configuration information about the testcase, which consists of:

  1. metadata identifying the Test Application in terms of the SCA Contributions that are used and the Composites that must be deployed and run

  2. data indicating which service operation(s) must be invoked with input data and expected output data (including exceptions for expected failure cases)

The Java test client consists of a base runtime class, BaseJAXWSTestCase.java. Each actual testcase is implemented by a small class which extends the base runtime class. The bulk of the code required to run a test is held in the base runtime class. The small testcase class contains the configuration for the specific test, which it provides to the code in the base runtime class through a standard interface.

The Java test client base runtime class is structured so that there is a replaceable class called the RuntimeBridge, which is used to communicate with the SCA runtime under test, for the purposes of deploying and running the test application. Each SCA runtime provider can produce a version of this class. The code within the runtime bridge is likely to be highly proprietary and specific to the SCA runtime for which it is written. Which runtime bridge class is used at runtime is controlled by an environment variable or system variable with the name "OASIS_TESTENV_RUNTIME_BRIDGE_CLASS", which is read by the code in BaseJAXWSTestCase.

The Test Client defaults to using Web services to communicate with the test application. The client is structured to permit Web services to be replaced by some other binding (eg JMS) should the SCA runtime under test not support Web services as a binding technology.

Test Application

Each Test Application consists of one top level SCA Composite file and one or more other SCA Composite files and their associated artifacts (implementations, interface files), plus test client invocation application described above.

A typical test application has a design where the top level composite offers a single service to the client application over a Web services binding. The top level composite contains one component which offers the service that is used by the client application. The top level composite then contains one or more other components which are used by the first component.

All of the components in the top level composite are implemented by composites. These second level composites then contain typically one component, implemented using a specific technology such as Java POJO or a BPEL process. In some cases the implementation may be a third level composite.

The application is structured so that alternative technologies can be used. For example, replacing the contents of the second-level or third-level composites allows different implementation technologies to be tested – eg BPEL scripts or C++ classes may be used instead of Java classes. Similarly, the binding used to connect from the top level composite to the client application may be changed from Web services to JMS if required, simply by changing the binding on the <service/> of the top level composite.

Which implementation language to use for test artifacts is controlled by a system variable or environment variable which is read by the test client application, with the name "OASIS_TESTENV_IMPL_LANG". This variable can have one of the following values:

The testcases are designed so that the range of implementation types can be expanded

Test Artifacts Organization

Note that the design of these testcases promotes reuse of artifacts between testcases, so that many testcases share components. For example, components implementing simple invokable services are all implemented using a single parameterized implementation artifact.

All the test artifacts are contained in a number of Contributions, which are simply filesystem directories which are all peers in the filesystem hierarchy. The names of the directories are the names of the Contributions and the names are significant. The names of Contributions containing implementation type specific artifacts (such as Java classes) are also specially structured to allow for replacement of one type of implementation artifact with another.

Broadly, Contribution names are as follows:

Note that the names of Contributions containing implementation specific artifacts ends with a name that is specific to the implementation type - so "_Java" is used for Java implementations, "_BPEL" is used for BPEL implementations, "_CPP" is used for C++ implementations (and so on). Note that the name following the underscore matches the name used in the "OASIS_TESTENV_IMPL_LANG" variable used to control execution of the test client. The concept is that where there is an implementation type specific contribution, each implementation type must provide its own versions of the same basic artifacts. Typically, this means that each contribution must contain the same set of Composites, but that the implementation type dependent artifacts that these composites use will differ from implementation type to implementation type.

Basically, the setting of the variable is used to select the suffix used for implementation type dependent contributions. If the variable is set to "Java" then the contribution "General_Java" is selected, whereas if the variable is set to "BPEL", the contribution "General_BPEL" is selected.

1.2 Namespaces and Java Package Names

The SCA Assembly testcase suite makes use of some XML namespaces and Java package names, as follows:

SCA Artifact Namespaces

These apply to artifacts such as Composites

http://docs.oasis-open.org/ns/opencsa/scatests/200903

http://docs.oasis-open.org/ns/opencsa/scatests/2009032

WSDL Namespace

http://test.sca.oasisopen.org/

Java Package name

For Java interface classes and for Java implementation classes

org.oasisopen.sca.test

1.3 Terminology

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this specification are to be interpreted as described in IETF RFC 2119 [RFC 2119]

1.4 Normative References

[RFC 2119] S. Bradner. Key words for use in RFCs to Indicate Requirement Levels. IETF RFC 2119, March 1997.
http://www.ietf.org/rfc/rfc2119.txt.

[ASM-TA] OASIS Committee Draft 01, “Test Assertions for the SCA Assembly Model Version 1.1 Specification” June 2009 http://docs.oasis-open.org/opencsa/sca-assembly/sca-assembly-1.1-test-assertions-cd01.pdf

1.5 Non-normative References

[TBD] [TBD]



2 TestCases

2.1 Section 4

ASM_4001_TestCase



Testcase ID

ASM_4001_TestCase

Test Assertion

ASM-TA-4001

Description

Tests that the @constrainingType attribute value of a <componentType/> element is the QName of a <constrainingType/> element

Artifacts

ASM_4001_TestCase.java

Test_ASM_4001.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite42.composite

TestComposite42.constraint

Service1.wsdl

Expected output

Positive test:

ASM_4001 request service1 operation1 invoked”

ASM_4002_TestCase



Testcase ID

ASM_4002_TestCase

Test Assertion

ASM-TA-4002

Description

Tests that the @name attribute value of a <service/> element of a <componentType/> is not the same as the @name attribute value of any other <service/> of the <componentType/>

Artifacts

ASM_4002_TestCase.java

Test_ASM_4002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite16.composite

Service1.wsdl

Expected output

Negative test:

exception”

ASM_4003_TestCase



Testcase ID

ASM_4003_TestCase

Test Assertion

ASM-TA-4003

Description

Tests that the @name attribute value of a <reference/> element of a <componentType/> is not the same as the @name attribute value of any other <reference/> of the <componentType/>

Artifacts

ASM_4003_TestCase.java

Test_ASM_4003.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite19.composite

Service1.wsdl

Expected output

Negative test:

exception”

ASM_4004_TestCase



Testcase ID

ASM_4004_TestCase

Test Assertion

ASM-TA-4004

Description

Tests that the @name attribute value of a <property/> element of a <componentType/> is not the same as the @name attribute value of any other <property/> of the <componentType/>

Artifacts

ASM_4004_TestCase.java

Test_ASM_4004.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite26.composite

Expected output

Negative test:

exception”



ASM_4005_TestCase



Testcase ID

ASM_4005_TestCase

Test Assertion

ASM-TA-4006

Description

Tests that the @type attribute value of a <property/> element of a <componentType/> is the QName of an XML schema type

Artifacts

ASM_4005_TestCase.java

Test_ASM_4005.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite43.composite

Service1.wsdl

Expected output

Positive test:

ASM_4005 request service1 operation1 invoked service2 operation1 invoked ”



ASM_4006_TestCase



Testcase ID

ASM_4006_TestCase

Test Assertion

ASM-TA-4007

Description

Tests that the @element attribute value of a <property/> element of a <componentType/> is the QName of an XSD global element

Artifacts

ASM_4006_TestCase.java

Test_ASM_4006.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite44.composite

Service1.wsdl

Expected output

Positive test:

ASM_4006 request service1 operation1 invoked service2 operation1 invoked ”



ASM_4007_TestCase



Testcase ID

ASM_4007_TestCase

Test Assertion

ASM-TA-4009

ASM-TA-4010

Description

Tests that a <property/> element of a <componentType/> does not have both @element and @type attributes set at the same time

Artifacts

ASM_4007_TestCase.java

Test_ASM_4007.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite45.composite

Service1.wsdl

Expected output

Negative test:

exception”



ASM_4008_TestCase



Testcase ID

ASM_4008_TestCase

Test Assertion

ASM-TA-4011

Description

Tests that a <property/> element of a <componentType/> which has @mustSupply="true" must have a value specified for that property in the <component/> that uses the <implementation/> with that <componentType/>

Artifacts

ASM_4008_TestCase.java

Test_ASM_4008.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite46.composite

Service1.wsdl

Expected output

Negative test:

exception”



2.2 Section 5

ASM_5002_TestCase



Testcase ID

ASM_5002_TestCase

Test Assertion

ASM-TA-5025

( + ASM-TA-5031 as it uses simple property values)

( + ASM-TA-4008 as it involves a component property value being used by the runtime implementation instance)

Description

Tests that a component with a single reference of multiplicity 1..1 with @target attribute set to the service of a second component in the same composite, where the service interface is compatible with the reference interface, can successfully invoke the target service.

Artifacts

ASM_5002_TestCase.java

Test_ASM_5002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test:

ASM_5002 request service1 operation1 invoked”



ASM_5003_TestCase



Testcase ID

ASM_5003_TestCase

Test Assertion

ASM-TA-5026

Description

Tests that a component with a single reference of multiplicity 1..n with @target attribute having 3 entries (the service of three other components in the same composite, where the service interface is compatible with the reference interface), can successfully invoke all the target services.

Artifacts

ASM_5003_TestCase.java

Test_ASM_5003.composite

TestInvocation.wsdl

TestClient_5003.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test:

ASM_5003 request service1 operation1 invokedservice2 operation1 invoked service3 operation1 invoked”



ASM_5004_TestCase



Testcase ID

ASM_5004_TestCase

Test Assertion

ASM-TA-5027

Description

Tests that a component with a single reference of multiplicity 1..1 with @target attribute having 3 entries (the service of three other components in the same composite, where the service interface is compatible with the reference interface), has an invalid configuration and cannot run.

Artifacts

ASM_5004_TestCase.java

Test_ASM_5004.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

exception”



ASM_5005_TestCase



Testcase ID

ASM_5005_TestCase

Test Assertion

ASM-TA-5001

Description

Tests that a component with multiple <service/> elements must have unique @name attributes for each service

Artifacts

ASM_5005_TestCase.java

Test_ASM_5005.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite2.composite

Service1.wsdl

Expected output

Negative test:

exception”



ASM_5006_TestCase



Testcase ID

ASM_5006_TestCase

Test Assertion

ASM-TA-5002

Description

Tests that the @name attribute of a <service/> element of a <component/> must match the @name attribute of a <service/> element in the componentType of the <implementation/> used by the <component/>

Artifacts

ASM_5006_TestCase.java

Test_ASM_5006.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

exception”



ASM_5007_TestCase



Testcase ID

ASM_5007_TestCase

Test Assertion

ASM-TA-5003

Description

Test that the @name attribute of a <reference/> element of a component is not equal to the @name attribute of any other <reference/> element of the same component

Artifacts

ASM_5007_TestCase.java

Test_ASM_5007.composite

TestInvocation.wsdlTestClient_0002.composite

TestComposite3.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

exception”







ASM_5008_TestCase



Testcase ID

ASM_5008_TestCase

Test Assertion

ASM-TA-5004

Description

Tests that the @name attribute of a <reference/> element of a component is equal to the @name attribute of a <reference/> element of the <componentType/> of the <implementation/> of the <component/>

Artifacts

ASM_5008_TestCase.java

Test_ASM_5008.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite4.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

exception”





ASM_5009_TestCase



Testcase ID

ASM_5009_TestCase

Test Assertion

ASM-TA-5005

Description

Tests that the @name attribute of a <component/> element in a <composite/> is not the same as the @name attribute of a second component in the same <composite/>

Artifacts

ASM_5009_TestCase.java

Test_ASM_5009.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

exception”



ASM_5010_TestCase



Testcase ID

ASM_5010_TestCase

Test Assertion

ASM-TA-5006

Description

Tests that the interface specified by the <interface/> child element of a <service/> element is a compatible subset of the interface declared for the <service/> element with the same @name attribute in the <componentType/> of the <implementation/> of the <component/> parent of the <service/>

Artifacts

ASM_5010_TestCase.java

Test_ASM_5010.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite5.composite

Service1.wsdl

Expected output

Negative test:

exception”





ASM_5011_TestCase



Testcase ID

ASM_5011_TestCase

Test Assertion

ASM-TA-5010

Description

Tests that the multiplicity of a <reference/> element of a <component/> can be 1..1 where the multiplicity of the equivalent <reference/> element in the <componentType/> of the <implementation/> of the <component/> is 1..n

Artifacts

ASM_5011_TestCase.java

Test_ASM_5011.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite6.composite

ASM_0002_Client.java

Service1.wsdl

Expected output

Positive test:

ASM_5011 request service1 operation1 invoked service2 operation1 invoked”



ASM_5012_TestCase



Testcase ID

ASM_0012_TestCase

Test Assertion

ASM-TA-5011

Description

Tests that the multiplicity of a <reference/> element of a <component/> can be any one of 0..1, 1..1, 0..n, 1..n where the multiplicity of the equivalent <reference/> element in the <componentType/> of the <implementation/> of the <component/> is 0..n

Artifacts

ASM_5012_TestCase.java

Test_ASM_5012.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite7.composite

Service1.wsdl

Expected output

Positive test:

ASM_5012 request service1 operation1 invoked service2 operation1 invoked service3 operation1 invoked service4 operation1 invoked service5 operation1 invoked”





ASM_5013_TestCase



Testcase ID

ASM_5013_TestCase

Test Assertion

ASM-TA-5012

Description

Tests that the multiplicity of a <reference/> element of a <component/> is 1..1 where the multiplicity of the equivalent <reference/> element in the <componentType/> of the <implementation/> of the <component/> is 1..1

Artifacts

ASM_5013_TestCase.java

Test_ASM_5013.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite4.composite

Service1.wsdl

Expected output

Positive test:

ASM_5013 request service1 operation1 invoked service2 operation1 invoked”





ASM_5014_TestCase



Testcase ID

ASM_5014_TestCase

Test Assertion

ASM-TA-5012

Description

Tests that the multiplicity of a <reference/> element of a <component/> is 0..n where the multiplicity of the equivalent <reference/> element in the <componentType/> of the <implementation/> of the <component/> is 1..1

Artifacts

ASM_5014_TestCase.java

Test_ASM_5014.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite4.composite

ASM_0002_Client.java

Service1.wsdl

Expected output

Negative test:

exception”





ASM_5015_TestCase



Testcase ID

ASM_5015_TestCase

Test Assertion

ASM-TA-5013

Description

Tests that the multiplicity of a <reference/> element of a <component/> is 1..1 where the multiplicity of the equivalent <reference/> element in the <componentType/> of the <implementation/> of the <component/> is 0..1

Artifacts

ASM_5015_TestCase.java

Test_ASM_5015.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite8.composite

Service1.wsdl

Expected output

Positive test:

ASM_5015 request service1 operation1 invoked service2 operation1 invoked”





ASM_5016_TestCase



Testcase ID

ASM_5016_TestCase

Test Assertion

ASM-TA-5016

Description

Tests that the interface declared by the <interface/> child element of a <reference/> of a <component/> is a compatible superset of the interface declared on the corresponding <reference/> of the componentType of the <implementation/> of the <component/>

Artifacts

ASM_5016_TestCase.java

Test_ASM_5016.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite4.composite

TestComposite9.composite

Service1.wsdl

Service1Superset.wsdl

Expected output

Positive test:

ASM_5016 request service1 operation1 invoked service2 operation1 invoked”





ASM_5017_TestCase



Testcase ID

ASM_5017_TestCase

Test Assertion

ASM-TA-5017

Description

Tests that where a <reference/> of a <component/> has no <binding/> child element, but the corresponding <reference/> element in the componentType does have a binding child element, the <binding/> from the componentType is used for the reference

Artifacts

ASM_5017_TestCase.java

Test_ASM_5017.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite10.composite

ASM_0002_Client.java

Service1.wsdl

Expected output

Positive test:

ASM_5017 request service1 operation1 invoked service2 operation1 invoked”



ASM_5018_TestCase



Testcase ID

ASM_5018_TestCase

Test Assertion

ASM-TA-5018

ASM-TA-5024

Description

Tests that where a <reference/> of a <component/> has a <binding/> child element and the corresponding <reference/> element in the componentType has a binding child element, the <binding/> from the <reference/> is used for the reference

Artifacts

ASM_5018_TestCase.java

Test_ASM_5018.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite10.composite

Service1.wsdl

Expected output

Positive test:

ASM_5018 request service1 operation1 invoked service3 operation1 invoked”



ASM_5019_TestCase



Testcase ID

ASM_0019_TestCase

Test Assertion

ASM-TA-5021

Description

Tests that where a <reference/> of a <component/> has @autowire=”true” and also has @target identifying a single target service that the reference is wired only to the single service identified by the @target attribute

Artifacts

ASM_5019_TestCase.java

Test_ASM_5019.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite7.composite

Service1.wsdl

Expected output

Positive test:

ASM_5019 request service1 operation1 invoked service3 operation1 invoked”



ASM_5020_TestCase



Testcase ID

ASM_5020_TestCase

Test Assertion

ASM-TA-5022

Description

Tests that where a <reference/> of a <component/> has @autowire=true and where there is also a single <wire/> element which as that <reference/> as its source that the reference is wired only to the single service identified by the <wire/> element

Artifacts

ASM_5020_TestCase.java

Test_ASM_5020.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite7.composite

Service1.wsdl

Expected output

Positive test:

ASM_5020 request service1 operation1 invoked service3 operation1 invoked”







ASM_5021_TestCase



Testcase ID

ASM_5021_TestCase

Test Assertion

ASM-TA-5023

Description

Tests that where a <reference/> of a <component/> has @autowire=true and where the <reference/> has a <binding/> child element which declares a single target service, the reference is wired only to the single service identified by the <wire/> element

Artifacts

ASM_5021_TestCase.java

Test_ASM_5021.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite7.composite

Service1.wsdl

Expected output

Positive test:

ASM_5021 request service1 operation1 invoked service3 operation1 invoked”





ASM_5022_TestCase



Testcase ID

ASM_5022_TestCase

Test Assertion

ASM-TA-5028

Description

Tests that where a <component/> <reference/> with multiplicity=0..1 is unwired (by any means) that the component executes correctly

Artifacts

ASM_5022_TestCase.java

Test_ASM_5022.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite8.composite

Service1.wsdl

Expected output

Positive test:

ASM_5022 request service1 operation1 invoked”





ASM_5023_TestCase



Testcase ID

ASM_5023_TestCase

Test Assertion

ASM-TA-5029

Description

Tests that where a <component/> <reference/> with multiplicity=1..1 is wired to a component service in the same composite and is also promoted by a <composite/> <reference/> which is wired to a target service by a component using the <composite/> as its implementation, that this is an error

Artifacts

ASM_5023_TestCase.java

Test_ASM_5023.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite11.composite

Service1.wsdl

Expected output

Negative test:

exception”





ASM_5024_TestCase



Testcase ID

ASM_0024_TestCase

Test Assertion

ASM-TA-5030

Description

Tests that where a <component/> <reference/> has @target set to some service, that the reference can have no child <binding/> elements

Artifacts

ASM_5024_TestCase.java

Test_ASM_5024.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite4.composite

Service1.wsdl

Expected output

Negative test:

exception”





ASM_5025_TestCase



Testcase ID

ASM_0025_TestCase

Test Assertion

ASM-TA-5032

Description

Tests that where a <component/> <property/> has its value set by means of a child <value/> element, that the type of the <value/> element matches the type declared for the <property/> element

Artifacts

ASM_5025_TestCase.java

Test_ASM_5025.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite12.composite

ASM_0002_Client.java

Service1.wsdl

Expected output

Positive test:

ASM_5025 request service1 operation1 invokedcomplex1complex2”





ASM_5026_TestCase



Testcase ID

ASM_5026_TestCase

Test Assertion

ASM-TA-5033

Description

Tests that where a <component/> <property/> has its value set by means of a child element that is NOT a <value/> element, that a) the type of the <property/> element is declared as an XML Schema global element by its @element attribute and that the child element is an instance of that global element

Artifacts

ASM_5026_TestCase.java

Test_ASM_5026.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite13.composite

Service1.wsdl

Expected output

Positive test:

ASM_5026 request service1 operation1 invokedcomplex1complex2”



ASM_5027_TestCase



Testcase ID

ASM_5027_TestCase

Test Assertion

ASM-TA-5034

Description

Tests that where a <component/> has 2 or more <property/> child elements that each <property/> element has a unique @name attribute value

Artifacts

ASM_5027_TestCase.java

Test_ASM_5027.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

exception



ASM_5028_TestCase



Testcase ID

ASM_5028_TestCase

Test Assertion

ASM-TA-5035

Description

Tests that a <component/> <property/> @name attribute matches the @name attribute of one of the <property/> elements of the <componentType/> of the <implementation/> of the <component/>

Artifacts

ASM_5028_TestCase.java

Test_ASM_5028.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

exception





ASM_5029_TestCase



Testcase ID

ASM_5029_TestCase

Test Assertion

ASM-TA-5036

Description

Tests that where a <component/> <property/> has @many=false that there is only one <value/> child element of the <property/>

Artifacts

ASM_5029_TestCase.java

Test_ASM_5029.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite12.composite

Service1.wsdl

Test_Types.xsd

Expected output

Negative test:

exception





ASM_5030_TestCase



Testcase ID

ASM_5030_TestCase

Test Assertion

ASM-TA-5037

Description

Tests that a <component/> <property/> with a @value attribute set does not have any <value/> child elements

Artifacts

ASM_5030_TestCase.java

Test_ASM_5030.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite14.composite

Service1.wsdl

Expected output

Negative test:

exception



ASM_5031_TestCase



Testcase ID

ASM_5031_TestCase

Test Assertion

ASM-TA-5038

Description

Tests that where a <component/> <reference/> has its @target attribute set to a valid service and the <composite/> also contains a <wire/> element with @source set to the <component/> <reference/> and @target set to a second valid service and has @replace=true, the <reference/> is wired to the second service only

Artifacts

ASM_5031_TestCase.java

Test_ASM_5031.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite4.composite

Service1.wsdl

Expected output

Positive test:

"ASM_0031 request service1 operation1 invoked service3 operation1 invoked"



ASM_5032_TestCase



Testcase ID

ASM_5032_TestCase

Test Assertion

ASM-TA-5007

Description

Tests that where a <component/> <service/> has no <binding/> subelements and the corresponding <service/> element of the <componentType/> of the <component/> <implementation/> has one or more <binding/> subelements, the <component/> <service/> is made available with all the bindings declared on the <service/> element of the <componentType/>

Artifacts

ASM_5032_TestCase.java

Test_ASM_5032.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite6.composite

TestComposite15.composite

Service1.wsdl

Expected output

Positive test:

ASM_5032 request service1 operation1 invokedservice2 operation1 invokedservice2 operation1 invoked”







ASM_5033_TestCase



Testcase ID

ASM_5033_TestCase

Test Assertion

ASM-TA-5008

Description

Tests that where a <component/> <service/> has no <binding/> subelements and the corresponding <service/> element of the <componentType/> of the <component/> <implementation/> has no <binding/> subelements, the <component/> <service/> is made available with binding.sca

Artifacts

ASM_5033_TestCase.java

Test_ASM_5033.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite6.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test:

ASM_5033 request service1 operation1 invokedservice2 operation1 invokedservice2 operation1 invoked”







ASM_5034_TestCase



Testcase ID

ASM_5034_TestCase

Test Assertion

ASM-TA-5009

Description

Tests that where a <component/> <service/> has 1 or more <binding/> subelements the <component/> <service/> is made available with all the bindings declared on the <service/> element

Artifacts

ASM_5034_TestCase.java

Test_ASM_5034.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite6.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test:

ASM_5034 request service1 operation1 invokedservice2 operation1 invokedservice2 operation1 invoked”



ASM_5035_TestCase



Testcase ID

ASM_5035_TestCase

Test Assertion

ASM-TA-5039

ASM-TA-5040

Description

Tests that where a <component/> <property/> element has a @type attribute declared it does not also have a @element attribute declared

Artifacts

ASM_5035_TestCase.java

Test_ASM_5035.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite12.composite

Service1.wsdl

Expected output

Negative test:

exception”



ASM_5036_TestCase



Testcase ID

ASM_5036_TestCase

Test Assertion

ASM-TA-5041

Description

Tests that where a <component/> <property/> has a type declared, the declared type is the same type as the declared type for the corresponding <property/> element in the componentType of the <implementation/> subelement of the <component/>

Artifacts

ASM_5036_TestCase.java

Test_ASM_5036.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite12.composite

Service1.wsdl

Expected output

Negative test:

exception”



ASM_5037_TestCase



Testcase ID

ASM_5037_TestCase

Test Assertion

ASM-TA-5042

Description

Tests that where <component/> <property/> has an @name attribute value that matches the @name attribute value of one of the <property/> elements in the componentType of the <implementation/> subelement of the <component/>

Artifacts

ASM_5037_TestCase.java

Test_ASM_5037.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite12.composite

Service1.wsdl

Expected output

Negative test:

exception"





2.3 Section 6

ASM_6001_TestCase



Testcase ID

ASM_6001_TestCase

Test Assertion

ASM-TA-6004

Description

Tests that where an SCA contribution contains two <composite/> elements with the same name and same targetNamespace that an SCA application using that composite does not run and that the SCA runtime reports an error

Artifacts

ASM_6001_TestCase.java

Test_ASM_6001.composite

TestInvocation.wsdl

TestClient_0002.composite

TestDuplicate1.composite

TestDuplicate2.composite

ASM_0002_Client.java

Service1.wsdl

Expected output

Negative test:

exception”





ASM_6002_TestCase



Testcase ID

ASM_6002_TestCase

Test Assertion

ASM-TA-6006

Description

Tests that where a <composite/> has multiple <service/> subelements that the @name attributes are unique across those subelements

Artifacts

ASM_6002_TestCase.java

Test_ASM_6002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite16.composite

Expected output

Negative test:

exception”





ASM_6003_TestCase



Testcase ID

ASM_6003_TestCase

Test Assertion

ASM-TA-6007

Description

Tests that where a <composite/> has a <service/> subelement that the @promote attribute identifies a <service/> of a <component/> in the <composite/>

Artifacts

ASM_6003_TestCase.java

Test_ASM_6003.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite17.composite

Service1.wsdl

Expected output

Negative test:

exception”



ASM_6004_TestCase



Testcase ID

ASM_6004_TestCase

Test Assertion

ASM-TA-6008

Description

Tests that the <interface/> declared on a <service/> subelement of a <composite/> is a compatible subset of the <interface/> declared on the <component/> <service/> reference by the @promote attribute

Artifacts

ASM_6004_TestCase.java

Test_ASM_6004.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite18.composite

Expected output

Positive test:

"ASM_6004 request service1 operation1 invoked"



ASM_6005_TestCase



Testcase ID

ASM_6005_TestCase

Test Assertion

ASM-TA-6009

Description

Tests that the @name attribute of a <composite/> <reference/> element is unique amongst the @name attributes of all the <reference/> elements of that <composite/>

Artifacts

ASM_6005_TestCase.java

Test_ASM_6005.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite19.composite

Expected output

Negative test:

"exception"



ASM_6006_TestCase



Testcase ID

ASM_6006_TestCase

Test Assertion

ASM-TA-6010

Description

Tests that the @promote attribute of a <composite/> <reference/> contains one or more URIs that each point to a <reference/> of a <component/> in the <composite/>

Artifacts

ASM_6006_TestCase.java

Test_ASM_6006.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite20.composite

TestComposite1.composite

Expected output

Negative test:

"exception"





ASM_6007_TestCase



Testcase ID

ASM_6007_TestCase

Test Assertion

ASM-TA-6011

Description

Tests that a <composite/> <reference/> can declare an <interface/> that is a compatible superset of the <interface/> declared by each <component/> <reference/> promoted by the composite reference

Artifacts

ASM_6007_TestCase.java

Test_ASM_6007.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite21.composite

TestComposite9.composite

Expected output

Positive test:

"ASM_6007 request service1 operation1 invoked service2 operation1 invoked"



ASM_6008_TestCase



Testcase ID

ASM_6008_TestCase

Test Assertion

ASM-TA-6012

Description

Tests that where a <composite/> <reference/> has no <interface/> subelement, and that <reference/> promotes 2 or more <component/> <reference/>s, that the <interface/> declared on each of the <component/> <reference/>s are the same

Artifacts

ASM_6008_TestCase.java

Test_ASM_6008.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite22.composite

TestComposite1.composite

Expected output

Negative test:

"exception"



ASM_6009_TestCase



Testcase ID

ASM_6009_TestCase

Test Assertion

ASM-TA-6015

Description

Tests that a <component/> <reference/> with @multiplicity=0..1 can be promoted by a <composite/> <reference/> with @multiplicity=1..1

Artifacts

ASM_6009_TestCase.java

Test_ASM_6009.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite23.composite

TestComposite1.composite

Expected output

Positive test:

"ASM_6009 request service1 operation1 invokedservice2 operation1 invoked"



ASM_6010_TestCase



Testcase ID

ASM_6010_TestCase

Test Assertion

ASM-TA-6017

Description

Tests that a <component/> <reference/> with @multiplicity=0..n can be promoted by a <composite/> <reference/> with @multiplicity=0..1

Artifacts

ASM_6010_TestCase.java

Test_ASM_6010.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite24.composite

TestComposite1.composite

Expected output

Positive test:

"ASM_6010 request service1 operation1 invoked service2 operation1 invoked"





ASM_6011_TestCase



Testcase ID

ASM_6011_TestCase

Test Assertion

ASM-TA-6018

Description

Tests that a <component/> <reference/> with @multiplicity=1..n can be promoted by a <composite/> <reference/> with @multiplicity=1..1

Artifacts

ASM_6011_TestCase.java

Test_ASM_6011.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite25.composite

TestComposite1.composite

Expected output

Positive test:

"ASM_6011 request service1 operation1 invoked service2 operation1 invoked"





ASM_6012_TestCase



Testcase ID

ASM_6012_TestCase

Test Assertion

ASM-TA-6019

Description

Tests that the @name attribute of a <property/> element of a <composite/> is unique amongst the @name attribute values of all the <property/> elements of that <composite/>

Artifacts

ASM_6012_TestCase.java

Test_ASM_6012.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite26.composite

TestComposite1.composite

Expected output

Negative test:

"exception"





ASM_6013_TestCase



Testcase ID

ASM_6013_TestCase

Test Assertion

ASM-TA-6020

Description

Tests that a <component/> <reference/> with @autowire=true is wired to a compatible <component/> <service/> in the same <composite/>

Artifacts

ASM_6013_TestCase.java

Test_ASM_6013.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite27.composite

Expected output

Positive test:

"ASM_6013 request service1 operation1 invoked third operation1 invoked"





ASM_6014_TestCase



Testcase ID

ASM_6014_TestCase

Test Assertion

ASM-TA-6021

Description

Tests that a <component/> <reference/> with @autowire=true is wired to a <component/> <service/> with an interface which is a compatible superset of the interface on the <reference/> in the same <composite/>

Artifacts

ASM_6014_TestCase.java

Test_ASM_6014.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite28.composite

Expected output

Positive test:

"ASM_6014 request service1 operation1 invoked third operation1 invoked"





ASM_6015_TestCase



Testcase ID

ASM_6015_TestCase

Test Assertion

ASM-TA-6022

Description

Tests that a <component/> <reference/> with @autowire=true and with some intents attached using its @requires attribute is wired to a compatible <component/> <service/> in the same <composite/>, where that <service/> has the same intents attached using its @requires attribute

Artifacts

ASM_6015_TestCase.java

Test_ASM_6015.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite29.composite

Service1.wsdl

Expected output

Positive test:

"ASM_6015 request service1 operation1 invoked third operation1 invoked"





ASM_6016_TestCase



Testcase ID

ASM_6016_TestCase

Test Assertion

ASM-TA-6023

Description

Tests that a <component/> <reference/> with @autowire=true and with some intents attached using its @requires attribute is not wired to a compatible <component/> <service/> in the same <composite/>, where that <service/> has different intents attached using its @requires attribute

Artifacts

ASM_6016_TestCase.java

Test_ASM_6016.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite30.composite

Expected output

Negative test:

"exception"





ASM_6017_TestCase



Testcase ID

ASM_6017_TestCase

Test Assertion

ASM-TA-6024

Description

Tests that a <component/> <reference/> with @autowire=true and @multiplicity="0..1" is wired to one compatible <component/> <service/> in the same <composite/>

Artifacts

ASM_6017_TestCase.java

Test_ASM_6017.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite8.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test with 2 alternative outputs:

"ASM_6017 request service1 operation1 invoked second operation1 invoked"

"ASM_6017 request service1 operation1 invoked third operation1 invoked"





ASM_6018_TestCase



Testcase ID

ASM_6018_TestCase

Test Assertion

ASM-TA-6025

Description

Tests that a <component/> <reference/> with @autowire=true and @multiplicity="0..n" is wired to all compatible <component/> <service/>s in the same <composite/>

Artifacts

ASM_6018_TestCase.java

Test_ASM_6018.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite7.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test:

"ASM_6018 request service1 operation1 invoked second operation1 invoked third operation1 invoked fourth operation1 invoked"



ASM_6019_TestCase



Testcase ID

ASM_6019_TestCase

Test Assertion

ASM-TA-6026

Description

Tests that a <component/> <reference/> with @autowire=true and @multiplicity="0..n" runs successfully when there are no compatible <component/> <service/>s in the same <composite/>

Artifacts

ASM_6019_TestCase.java

Test_ASM_6019.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite7.composite

Service1.wsdl

Expected output

Positive test:

"ASM_6019 request service1 operation1 invoked"



ASM_6020_TestCase



Testcase ID

ASM_6020_TestCase

Test Assertion

ASM-TA-6027

Description

Tests that a <component/> <reference/> with @autowire=true and @multiplicity="1..n" fails and causes an error to be raised when there are no compatible <component/> <service/>s in the same <composite/>

Artifacts

ASM_6020_TestCase.java

Test_ASM_6020.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite6.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_6021_TestCase



Testcase ID

ASM_6021_TestCase

Test Assertion

ASM-TA-6028

Description

Tests that a <composite/> <service/> @promote attribute contains the URI of a <component/> <service/> in the <composite/>

Artifacts

ASM_6021_TestCase.java

Test_ASM_6021.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite31.composite

Expected output

Negative test:

"exception"





ASM_6022_TestCase



Testcase ID

ASM_6022_TestCase

Test Assertion

ASM-TA-6029

Description

Tests that a <component/> <reference/> with multiplicity ="1..n" is wired to a <service/> in the same <composite/> or is promoted by a <composite> <reference/>, when the containing <composite/> is used as an <implementation/>

Artifacts

ASM_6022_TestCase.java

Test_ASM_6022.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite32.composite

Expected output

Negative test:

"exception"



ASM_6023_TestCase



Testcase ID

ASM_6023_TestCase

Test Assertion

ASM-TA-6030

Description

Tests that a <component/> <property/> which is marked with @mustSupply="true" in the componentType of the <component/> <implementation/> is given a value

Artifacts

ASM_6023_TestCase.java

Test_ASM_6023.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite33.composite

Expected output

Negative test:

"exception"



ASM_6024_TestCase



Testcase ID

ASM_6024_TestCase

Test Assertion

ASM-TA-6031

Description

Tests that the @name attribute of an <implementation.composite/> element is the QName of a <composite/> in the SCA Domain

Artifacts

ASM_6024_TestCase.java

Test_ASM_6024.composite

TestInvocation.wsdl

TestClient_0002.composite

Expected output

Negative test:

"exception"



ASM_6025_TestCase



Testcase ID

ASM_6025_TestCase

Test Assertion

ASM-TA-6032

Description

Tests that when an <include/> element is processed and results in an invalid <composite/> configuration, then the SCA runtime raises an error and does not run the resulting composite

Artifacts

ASM_6025_TestCase.java

Test_ASM_6025.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite34.composite

Expected output

Negative test:

"exception"



ASM_6026_TestCase



Testcase ID

ASM_6026_TestCase

Test Assertion

ASM-TA-6035

ASM-TA-6036

Description

Tests that when a @promote attribute of a <composite/> <reference/> has a URI for a <component/> <reference/> that is present in a <composite> which is referenced through an <include/> element in the first <composite/> and also when a @promote attribute of a <composite/> <service/> has a URI for a <component/> <service/> present in the same included <composite/> then the promotions succeed and the <component/> <service/> can be invoked and the <component/> is able to invoke the reference

Artifacts

ASM_6026_TestCase.java

Test_ASM_6026.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite4.composite

TestComposite35.composite

TestComposite36.composite

Service1.wsdl

Expected output

Positive test:

"ASM_6026 request service1 operation1 invoked service2 operation1 invoked"



ASM_6027_TestCase



Testcase ID

ASM_6027_TestCase

Test Assertion

ASM-TA-6037

Description

Tests that when a first <composite/> contains a <wire/> element which has a @source attribute referencing a <component/> <reference/> in a second <composite/> and a @target attribute referencing a <component/> <service/> element also in that second <composite>, where the second composite is referenced by an <include/> element in the first <composite/>, then the wire successfully connects the <reference/> to the <service/> and the client component can invoke operations on the service.

Artifacts

ASM_6027_TestCase.java

Test_ASM_6027.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite4.composite

TestComposite37.composite

Expected output

Positive test:

"ASM_6027 request service1 operation1 invoked service2 operation1 invoked"



ASM_6028_TestCase



Testcase ID

ASM_6028_TestCase

Test Assertion

ASM-TA-6038

ASM-TA-6039

Description

Tests that when a <composite/> <property/> element has a @type attribute declared it does not also have a @element attribute declared

Artifacts

ASM_6028_TestCase.java

Test_ASM_6028.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Expected output

Negative test:

"exception"



ASM_6029_TestCase



Testcase ID

ASM_6029_TestCase

Test Assertion

ASM-TA-6040

Description

Tests that when a <composite/> has an <include/> which references a second <composite/> which has @local="true", then the first composite also has @local="true"

Artifacts

ASM_6029_TestCase.java

Test_ASM_6029.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite4.composite

TestComposite38.composite

Expected output

Negative test:

"exception"



ASM_6030_TestCase



Testcase ID

ASM_6030_TestCase

Test Assertion

ASM-TA-6041

Description

Tests that when a <composite/> has an <include/> element, the @name of the <include/> references the QName of a composite in the Domain

Artifacts

ASM_6030_TestCase.java

Test_ASM_6030.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Expected output

Negative test:

"exception"



ASM_6031_TestCase



Testcase ID

ASM_6031_TestCase

Test Assertion

ASM-TA-6013

Description

Tests that when a <composite/> <reference/> has @requires with intents declared and the <component/> <reference/> promoted by the composite reference has @requires with intents declared, the two sets of intents do not contain a mutually exclusive pair of intents

Artifacts

ASM_6031_TestCase.java

Test_ASM_6031.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite39.composite

Expected output

Negative test:

"exception"



ASM_6032_TestCase



Testcase ID

ASM_6032_TestCase

Test Assertion

ASM-TA-6014

Description

Tests that when a <composite/> <reference/> has @requires with 2 or more intents in the declared set, that the set does not contain 2 mutually exclusive intents

Artifacts

ASM_6032_TestCase.java

Test_ASM_6032.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite40.composite

Expected output

Negative test:

"exception"

ASM_6033_TestCase



Testcase ID

ASM_6033_TestCase

Test Assertion

ASM-TA-6016

Description

Tests that when a <composite/> <reference/> element promotes a <component/> <reference/> element with @multiplicity="1..1", the @multiplicity of the <composite/> <reference/> is also "1..1"

Artifacts

ASM_6033_TestCase.java

Test_ASM_6033.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestComposite41.composite

Expected output

Negative test:

"exception"







2.4 Section 7

ASM_7001_TestCase



Testcase ID

ASM_7001_TestCase

Test Assertion

ASM-TA-7001

ASM-TA-7006

Description

Tests that when a <component/> has a @constrainingType attribute set, that the <component/> implements every <service/> element defined in the <constrainingType/>

Artifacts

ASM_7001_TestCase.java

Test_ASM_7001.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7001.constraint

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_7002_TestCase



Testcase ID

ASM_7002_TestCase

Test Assertion

ASM-TA-7002

ASM-TA-7007

Description

Tests that when a <component/> has a @constrainingType attribute set, that the <component/> implements every <reference/> element defined in the <constrainingType/>

Artifacts

ASM_7002_TestCase.java

Test_ASM_7002.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7002.constraint

TestComposite1.composite

TestComposite4.composite

Expected output

Negative test:

"exception"



ASM_7003_TestCase



Testcase ID

ASM_7003_TestCase

Test Assertion

ASM-TA-7003

ASM-TA-7008

Description

Tests that when a <component/> has a @constrainingType attribute set, that the <component/> implements every <property/> element defined in the <constrainingType/>

Artifacts

ASM_7003_TestCase.java

Test_ASM_7003.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7003.constraint

TestComposite1.composite

Expected output

Negative test:

"exception"



ASM_7004_TestCase



Testcase ID

ASM_7004_TestCase

Test Assertion

ASM-TA-7009

Description

Tests that when a <component/> has a @constrainingType attribute set, and the <component/> has an <implementation/> with a <componentType/> with one or more <service/> elements that are not in the <constrainingType/> that the <component/> runs successfully

Artifacts

ASM_7004_TestCase.java

Test_ASM_7004.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7004.constraint

TestComposite48.composite

Expected output

Positive test:

"ASM_7004 request service1 operation1 invoked"



ASM_7005_TestCase



Testcase ID

ASM_7005_TestCase

Test Assertion

ASM-TA-7010

Description

Tests that when a <component/> has a @constrainingType attribute set, and the <component/> has an <implementation/> with a <componentType/> with one or more <reference/> elements that are not in the <constrainingType/> that those <reference/> elements have multiplicity of 0..1 or 0..n

Artifacts

ASM_7005_TestCase.java

Test_ASM_7005.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7004.constraint

TestComposite49.composite

Expected output

Positive test:

"ASM_7005 request service1 operation1 invoked"



ASM_7006_TestCase



Testcase ID

ASM_7006_TestCase

Test Assertion

ASM-TA-7011

Description

Tests that when a <component/> has a @constrainingType attribute set, and the <component/> has an <implementation/> with a <componentType/> with one or more <property/> elements that are not in the <constrainingType/> that those <property/> elements have @mustSupply="false"

Artifacts

ASM_7006_TestCase.java

Test_ASM_7006.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7004.constraint

TestComposite50.composite

Expected output

Positive test:

"ASM_7006 request service1 operation1 invokedData1Data2"

ASM_7007_TestCase



Testcase ID

ASM_7007_TestCase

Test Assertion

ASM-TA-7012

Description

Tests that when a <component/> has a @constrainingType attribute set, and the <component/> has an <implementation/> with a <componentType/> with one or more <reference/> elements that are not in the <constrainingType/> that those <reference/> elements are not wired by the component

Artifacts

ASM_7007_TestCase.java

Test_ASM_7007.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7004.constraint

TestComposite1.composite

TestComposite49.composite

Expected output

Negative test:

"exception"



ASM_7008_TestCase



Testcase ID

ASM_7008_TestCase

Test Assertion

ASM-TA-7013

Description

Tests that when a <component/> has a @constrainingType attribute set, and the <component/> has an <implementation/> with a <componentType/> with one or more <service/> elements that are not in the <constrainingType/> that those <service/> elements are not promoted by the composite containing the component

Artifacts

ASM_7008_TestCase.java

Test_ASM_7008.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7004.constraint

TestComposite48.composite

Expected output

Negative test:

"exception"

ASM_7009_TestCase



Testcase ID

ASM_7009_TestCase

Test Assertion

ASM-TA-7014

Description

Tests that when a <component/> has a @constrainingType attribute set, and the <component/> has an <implementation/> with a <componentType/> with one or more <service/> elements that are not in the <constrainingType/> that those <reference/> elements are not promoted by the composite containing the component

Artifacts

ASM_7009_TestCase.java

Test_ASM_7009.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7004.constraint

TestComposite49.composite

Expected output

Negative test:

"exception"



ASM_7010_TestCase



Testcase ID

ASM_7010_TestCase

Test Assertion

ASM-TA-7005

Description

Tests that where the SCA Domain contains 2 or more <constrainingType/> documents, that the @name attribute value of any <constrainingType/> element is not the same as the @name attribute value of any other <constrainingType/> element

Artifacts

ASM_7010_TestCase.java

Test_ASM_7010.composite

TestInvocation.wsdl

TestClient_0002.composite

Test_ASM_7010_A.constraint

Test_ASM_7010_B.constraint

TestComposite49.composite

Expected output

Negative test:

"exception"





2.5 Section 8

ASM_8001_TestCase



Testcase ID

ASM_8001_TestCase

Test Assertion

ASM-TA-8001

Description

Tests that when an <interface/> element references an interface document which is marked remotable, that the interface document does not contain the declaration of 2 operations with the same name

Artifacts

ASM_8001_TestCase.java

Test_ASM_8001.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite51.composite

Service3.wsdl

Expected output

Negative test:

"exception"



ASM_8002_TestCase



Testcase ID

ASM_8002_TestCase

Test Assertion

ASM-TA-8002

Description

Tests that when an <interface/> element references an interface document which is marked remotable, that the value of an input parameter of an operation in the interface in the client component implementation is the same after the operation completes as immediately before invoking the operation

Artifacts

ASM_8002_TestCase.java

Test_ASM_8002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite52.composite

TestComposite53.composite

Service1.wsdl

Service4.wsdl

Expected output

Positive test:

"ASM_8002 request service1 operation1 invoked"



ASM_8003_TestCase



Testcase ID

ASM_8003_TestCase

Test Assertion

ASM-TA-8004

ASM-TA-8007

Description

Tests that when an <interface/> element of a <component/> <reference/> has an interface that is marked bidirectional, that the invoked <service/> <implementation/> can invoke an operation of the callback interface on the <implementation/> which has the <reference/>

Artifacts

ASM_8003_TestCase.java

Test_ASM_8003.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite54.composite

TestComposite55.composite

Service1.wsdl

Service5.wsdl

Service5Callback.wsdl

Expected output

Positive test:

"ASM_8003 request service1 operation1 invoked service2 operation1 invoked service1 callback1 invoked"



ASM_8004_TestCase



Testcase ID

ASM_8004_TestCase

Test Assertion

ASM-TA-8005

Description

Tests that when an <interface/> element of a <component/> <reference/> has an interface that is marked bidirectional, where the forward interface is marked remotable, then the callback interface is also marked remotable

Artifacts

ASM_8004_TestCase.java

Test_ASM_8004.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite56.composite

TestComposite57.composite

Service1.wsdl

Service6Callback.java

Service6.java

Expected output

Negative test:

"exception"



ASM_8005_TestCase



Testcase ID

ASM_8005_TestCase

Test Assertion

ASM-TA-8006

Description

Tests that when an <interface/> element of a <component/> <reference/> has an interface that is marked bidirectional, where the forward interface is marked local, then the callback interface is also marked local

Artifacts

ASM_8005_TestCase.java

Test_ASM_8005.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite58.composite

TestComposite59.composite

Service1.wsdl

Service7Callback.java

Service7.java

Expected output

Negative test:

"exception"



ASM_8006_TestCase



Testcase ID

ASM_8006_TestCase

Test Assertion

ASM-TA-8008

Description

Tests that when an <interface/> element of a <component/> <reference/> explicitly declares both a forward interface and a callback interface and the forward interface document also declares a callback interface, that the two callback interfaces are compatible

Artifacts

ASM_8006_TestCase.java

Test_ASM_8006.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite60.composite

TestComposite61.composite

Service1.wsdl

Service9.wsdl

Service8Callback.wsdl

Expected output

Negative test:

"exception"



ASM_8007_TestCase



Testcase ID

ASM_8007_TestCase

Test Assertion

ASM-TA-8009

Description

Tests that when an <interface/> element of a <component/> <service/> explicitly declares both a forward interface and a callback interface that the callback interface is compatible with the callback interface of the <componentType/> <service/> element of the <implementation/> used by the <component/>

Artifacts

ASM_8007_TestCase.java

Test_ASM_8007.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite54.composite

TestComposite55.composite

Service1.wsdl

Service5.wsdl

Service5Callback.wsdl

Service8Callback.wsdl

Expected output

Negative test:

"exception"



ASM_8008_TestCase



Testcase ID

ASM_8008_TestCase

Test Assertion

ASM-TA-8010

Description

Tests that when an <interface/> element of a <component/> <reference/> explicitly declares both a forward interface and a callback interface that the callback interface is compatible with the callback interface of the <componentType/> <reference/> element of the <implementation/> used by the <component/>

Artifacts

ASM_8008_TestCase.java

Test_ASM_8008.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite54.composite

TestComposite55.composite

Service1.wsdl

Service5.wsdl

Service5Callback.wsdl

Service8Callback.wsdl

Expected output

Negative test:

"exception"



ASM_8009_TestCase



Testcase ID

ASM_8009_TestCase

Test Assertion

ASM-TA-8011

Description

Tests that when an <interface/> element of a <componentType/> <reference/> or <service/> does not declare a callback interface that the <component/> <reference/> or <service/> element of the <implementation/> used by the <component/> also does not declare a callback interface

Artifacts

ASM_8009_TestCase.java

Test_ASM_8009.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite54.composite

TestComposite55.composite

Service1.wsdl

Service5Callback.java

Expected output

Negative test:

"exception"



ASM_8010_TestCase



Testcase ID

ASM_8010_TestCase

Test Assertion

ASM-TA-8012

Description

Tests that when an <interface/> element of a <component/> <service/> declares a callback interface that the <composite/> <service/> element which promotes the component service declares a compatible callback interface

Artifacts

ASM_8010_TestCase.java

Test_ASM_8010.composite

TestInvocation.wsdlTestClient_0002.composite

TestComposite54.composite

TestComposite63.composite

Service1.wsdl

Service5.wsdl

Service5Callback.wsdl

Service8Callback.wsdl

Expected output

Negative test:

"exception"



ASM_8011_TestCase



Testcase ID

ASM_8011_TestCase

Test Assertion

ASM-TA-8013

Description

Tests that when an <interface/> element of a <component/> <reference/> declares a callback interface that the <composite/> <reference/> element which promotes the component service declares a compatible callback interface

Artifacts

ASM_8011_TestCase.java

Test_ASM_8011.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite62.composite

TestComposite55.composite

Service5.wsdl

Service5Callback.wsdl

Expected output

Negative test:

"exception"



ASM_8012_TestCase



Testcase ID

ASM_8012_TestCase

Test Assertion

ASM-TA-8014

Description

Tests that when an <interface/> element of a <component/> <reference/> does not declare a callback interface that the <composite/> <reference/> element which promotes the <component/> <reference/> also does not declare a callback interface

Artifacts

ASM_8012_TestCase.java

Test_ASM_8012.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite64.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_8013_TestCase



Testcase ID

ASM_8013_TestCase

Test Assertion

ASM-TA-8015

Description

Tests that where the <implementation/> of a component with a <service/> with an <interface/> with a callback, the implementation can invoke operations of the callback interface an arbitrary number of times

Artifacts

ASM_8013_TestCase.java

Test_ASM_8013.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite54.composite

TestComposite65.composite

Service1.wsdl

Service5.wsdl

Service5Callback.wsdl

Expected output

Positive test:

"ASM_8013 request service1 operation1 invoked service2 operation1 invoked service1 callback1 invoked service1 callback1 invoked service1 callback1 invoked"



ASM_8014_TestCase



Testcase ID

ASM_8014_TestCase

Test Assertion

ASM-TA-8018

Description

Tests that when an <interface/> element of a <service/> or <reference/> has one or more intents attached to it, those intents apply to the <service/> or <reference/>

Artifacts

ASM_8014_TestCase.java

Test_ASM_8014.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite4.composite

TestComposite66.composite

Service1.wsdl

Service1_Intent.wsdl

Expected output

Positive test:

"ASM_8018 request service1 operation1 invoked service2 operation1 invoked"



ASM_8015_TestCase



Testcase ID

ASM_8015_TestCase

Test Assertion

ASM-TA-8020

Description

Tests that when an <interface.wsdl/> element is used to declare an interface, that the @interface attribute of the element references a WSDL 1.1 portType

Artifacts

ASM_8015_TestCase.java

Test_ASM_8015.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

TestInvocation.wsdl

Service1.wsdl

Expected output

Positive test:

"ASM_8015 request service1 operation1 invoked"



ASM_8016_TestCase



Testcase ID

ASM_8016_TestCase

Test Assertion

ASM-TA-8020

Description

Tests that when an <interface.wsdl/> element is used to declare a callback interface, that the @callbackInterface attribute of the element references a WSDL 1.1 portType

Artifacts

ASM_8016_TestCase.java

Test_ASM_8016.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite54.composite

TestComposite55.composite

ASM_0002_Client.java

Service1.wsdl

Service5.wsdl

Service5Callback.wsdl

Expected output

Positive test:

"ASM_8016 request service1 operation1 invoked service2 operation1 invoked service1 callback1 invoked"



ASM_8017_TestCase



Testcase ID

ASM_8017_TestCase

Test Assertion

ASM-TA-8014

Description

Tests that when an <interface/> element of a <component/> <service/> does not declare a callback interface that the <composite/> <service/> element which promotes the <component/> <service/> also does not declare a callback interface

Artifacts

ASM_8017_TestCase.java

Test_ASM_8017.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite64.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_8018_TestCase



Testcase ID

ASM_8018_TestCase

Test Assertion

ASM-TA-8011

Description

Tests that when an <interface/> element of a <componentType/> <service/> does not declare a callback interface that the <component/> <service/> element of the <implementation/> used by the <component/> also does not declare a callback interface

Artifacts

ASM_8018_TestCase.java

Test_ASM_8018.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Service5Callback.wsdl

Expected output

Negative test:

"exception"



ASM_8019_TestCase



Testcase ID

ASM_8019_TestCase

Test Assertion

ASM-TA-8022

Description

Tests that an <interface.wsdl/> element does not contain @remotable="false"

Artifacts

ASM_8019_TestCase.java

Test_ASM_8019.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

"exception"





2.6 Section 9

ASM_9001_TestCase



Testcase ID

ASM_9001_TestCase

Test Assertion

ASM-TA-9002

Description

Tests that if a <binding/> element of a <reference/> element has a @uri attribute set, that it points to a service endpoint.

Artifacts

ASM_9001_TestCase.java

Test_ASM_9001.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test:

"ASM_9001 request service1 operation1 invoked"



ASM_9002_TestCase



Testcase ID

ASM_9002_TestCase

Test Assertion

ASM-TA-9003

Description

Tests that if a <service/> element has multiple <binding/> subelements, that the @name attribute of each <binding/> element must be unique amongst the binding elements of that <service/>

Artifacts

ASM_9002_TestCase.java

Test_ASM_9002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_9003_TestCase



Testcase ID

ASM_9003_TestCase

Test Assertion

ASM-TA-9004

Description

Tests that if a <binding/> element of a <reference/> element does not identify a target service using binding specific mechanisms, that it has a @uri attribute which resolves to a valid service endpoint

Artifacts

ASM_9003_TestCase.java

Test_ASM_9003.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test:

"ASM_9003 request service1 operation1 invoked"



ASM_9004_TestCase



Testcase ID

ASM_9004_TestCase

Test Assertion

ASM-TA-9005

Description

Tests that if a <binding/> element of a <reference/> element is wired to a <service/> element which has multiple <binding/> subelements, each with a @name attribute set, that the @target attribute of the <reference/> uses the form "componentName/serviceName/bindingName" to select one specific binding for the wire

Artifacts

ASM_9004_TestCase.java

Test_ASM_9004.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Positive test:

"ASM_9004 request service1 operation1 invoked"



2.7 Section 10

ASM_10001_TestCase



Testcase ID

ASM_10001_TestCase

Test Assertion

ASM-TA-10001

Description

Tests that the Qname of an <intent/> <policySet/> <bindingType/> or <implementationType/> subelement of a <definitions/> element is unique in the Domain

Artifacts

ASM_10001_TestCase.java

Test_ASM_5002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

ASM_10001/definitions.xml

Expected output

Negative test:

"exception"



ASM_10002_TestCase



Testcase ID

ASM_10002_TestCase

Test Assertion

ASM-TA-10002

Description

Tests that when a <definitions/> file contains an <intent/> subelement, that the intent is available for use by any element in the SCA Domain

Artifacts

ASM_10002_TestCase.java

Test_ASM_10002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

General/META-INF/definitions.xml

Expected output

Positive test:

"ASM_10002 request service1 operation1 invoked"



ASM_10003_TestCase



Testcase ID

ASM_10003_TestCase

Test Assertion

ASM-TA-10003

Description

Tests that when a <definitions/> file has content that does not conform to the sca-definitions.xsd, it is rejected by the SCA runtime

Artifacts

ASM_10003_TestCase.java

Test_ASM_10003.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

ASM_10003/META-INF/definitions.xml

Expected output

Negative test:

"exception"



2.8 Section 12

ASM_12001_TestCase



Testcase ID

ASM_12001_TestCase

Test Assertion

ASM-TA-12002

ASM-TA-12003

Description

Tests that a contribution with a META-INF directory at the root, containing a file called sca-contribution.xml containing a <deployable/> element referencing a composite in the contribution, has that composite run when the contribution is deployed

Artifacts

ASM_12001_TestCase.java

Test_ASM_12001.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

ASM_12001/META-INF/sca-contribution.xml

Expected output

Positive test:

"ASM_12001 request service1 operation1 invoked"



ASM_12002_TestCase



Testcase ID

ASM_12002_TestCase

Test Assertion

ASM-TA-12005

ASM-TA-12002

Description

Tests that where a WSDL document references its schema using @schemaLocation attribute (schema artifact specific artifact resolution mechanism), that this is used to resolve the schema rather than SCA mechanisms.

Artifacts

ASM_12002_TestCase.java

Test_ASM_12002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1a.wsdl

Service1a.xsd (at location http://www.oasis-open.org/committees/download.php/32378/Service1a.xsd)

Expected output

Positive test:

"ASM_12002 request service1 operation1 invoked"



ASM_12003_TestCase



Testcase ID

ASM_12003_TestCase

Test Assertion

ASM-TA-12006

ASM-TA-12012

Description

Tests that where a WSDL document references its schema using @schemaLocation attribute (schema artifact specific artifact resolution mechanism), and that this mechanism fails, then the SCA runtime reports an error

Artifacts

ASM_12003_TestCase.java

Test_ASM_12003.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1b.wsdl

Expected output

Negative test:

"exception"



ASM_12004_TestCase



Testcase ID

ASM_12004_TestCase

Test Assertion

ASM-TA-12007

Description

Tests that the SCA runtime accepts and runs a contribution in ZIP format

Artifacts

ASM_12004_TestCase.java

Test_ASM_12004.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

ASM_12004.zip

Expected output

Positive test:

"ASM_12004 request service1 operation1 invoked"



ASM_12005_TestCase



Testcase ID

ASM_12005_TestCase

Test Assertion

ASM-TA-12010

Description

Tests that where multiple indirect dependent contributions export conflicting artifacts, the conflict is resolved by explicit import statements in the root contribution



The concept of the test is that two composite files with the same name in 2 different contributions have different contents - and that only 1 of them will work with the root composite file

Artifacts

ASM_12005_TestCase.java

Test_ASM_12005.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite5.composite (version 1 - contribution = General)

TestComposite5.composite (version 2 - contribution = Contribution1)

Service1.wsdl

Expected output

Positive test:

"ASM_12005 request servicex operation1 invoked"



ASM_12006_TestCase



Testcase ID

ASM_12006_TestCase

Test Assertion

ASM-TA-12013

Description

Tests that where a <component/> <reference/> is not wired by any explicit means, where the component is at the SCA Domain level that the reference remains unwired and cannot be invoked by the <component/> <implementation/>

Artifacts

ASM_12006_TestCase.java

Test_ASM_12006.composite

TestClient_0004.composite

TestComposite1.composite

ASM_0002_Client.java

Service1.wsdl

Expected output

Positive test:

"ASM_12006 request no invocation"



ASM_12007_TestCase



Testcase ID

ASM_12007_TestCase

Test Assertion

ASM-TA-12027

Description

Tests that where a contribution contains multiple <import/> declarations which refer to the namespace of a referenced artifact, that the artifact is found by searching target locations in the order in which the <import/> statements occur in the <contribution/> document

Artifacts

ASM_12007_TestCase.java

Test_ASM_12007.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite5.composite (version 1 - contribution = General)

TestComposite5.composite (version 2 - contribution = Contribution1)

Service1.wsdl

ASM_12007/META-INF/sca-contribution.xml

Expected output

Negative test:

"exception"



ASM_12008_TestCase



Testcase ID

ASM_12008_TestCase

Test Assertion

ASM-TA-12028

Description

Tests that where a contribution contains an <import/> declaration which refers to the namespace of a referenced artifact and where the artifact is present in a second contribution which exports the namespace, that the artifact is resolved in the second contribution even though a copy of the artifact exists in the original contribution

Artifacts

ASM_12008_TestCase.java

Test_ASM_12008.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite5a.composite (version 1 - contribution = General)

TestComposite5.composite (version 2 - contribution = ASM_12008)

Service1.wsdl

ASM_12008/META-IF/sca-contribution.xml

Expected output

Negative test:

"exception"



ASM_12009_TestCase



Testcase ID

ASM_12008_TestCase

Test Assertion

ASM-TA-12029

Description

Tests that where a contribution contains an <import/> declaration with a specified target contribution which refers to the namespace of a referenced artifact and where the artifact is NOT present in the target contribution which exports the namespace, that the artifact is resolved in the first contribution when a copy of the artifact exists in the original contribution

Artifacts

ASM_12009_TestCase.java

Test_ASM_12009.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite66.composite

Service1.wsdl

Contribution1

ASM_12009/META-IF/sca-contribution.xml

Expected output

Positive test:

"ASM_12009 request servicex operation1 invoked"





ASM_12010_TestCase



Testcase ID

ASM_12010_TestCase

Test Assertion

ASM-TA-12030

Description

Tests that where a first contribution resolves an artifact reference to an artifact in a second contribution, where the resolved artifact has a further artifact reference, that this reference is resolved through the import statements of the second contribution even if the first contribution has import statements (to different locations) for the same namespace

Artifacts

ASM_12010_TestCase.java

Test_ASM_12010.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite67.composite (Contribution2)

TestComposite5.composite (version 1 - contribution = General)

TestComposite5.composite (version 2 - contribution = Contribution1)

Service1.wsdl

ASM_12010/META-IF/sca-contribution.xml

Contribution2/META-INF/sca-contribution.xml

Expected output

Positive test:

"ASM_12010 request servicex operation1 invoked"



ASM_12011_TestCase



Testcase ID

ASM_12011_TestCase

Test Assertion

ASM-TA-12031

Description

Tests that where a contribution contains an <import/> declaration with a specific target contribution which refers to the namespace of a referenced artifact and the artifact is neither present in the target contribution nor the original contribution, that the resolution fails and the SCA runtime reports an error even where that artifact is available in other contributions

Artifacts

ASM_12011_TestCase.java

Test_ASM_12011.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite68.composite

Service1.wsdl

ASM_12010/META-IF/sca-contribution.xml

Expected output

Negative test:

"exception"



ASM_12012_TestCase



Testcase ID

ASM_12012_TestCase

Test Assertion

ASM-TA-12032

Description

Tests that where a contribution contains an sca-contribution.xml file that violates the schema sca-contribution.xsd, that the SCA runtime rejects the file and raises an error

Artifacts

ASM_12012_TestCase.java

Test_ASM_12012.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite5.composite (version 1 - contribution = General)

Service1.wsdl

ASM_12012/META-IF/sca-contribution.xml

Expected output

Negative test:

"exception"



ASM_12013_TestCase



Testcase ID

ASM_12013_TestCase

Test Assertion

ASM-TA-12035

Description

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

Artifacts

ASM_12013_TestCase.java

Test_ASM_12013.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite69.composite

TestComposite1.composite (version 1 - contribution = General)

TestComposite1.composite (version 2 - contribution = ASM_12013)

Service1.wsdl

Service1.java

service1Impl.java

ASM_12013/META-IF/sca-contribution.xml

Expected output

Positive test:

"ASM_12013 request service1 operation1 invoked"





2.9 Section 13

ASM_13001_TestCase



Testcase ID

ASM_13001_TestCase

Test Assertion

ASM-TA-13001

Description

Tests that the SCA runtime rejects an invalid composite file which violates one of the SCA schemas (sca-core.xsd, sca-interface-wsdl.xsd, sca-implementation-composite.xsd and sca-binding-sca.xsd).

Artifacts

ASM_13001_TestCase.java

Test_ASM_13001.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_13002_TestCase



Testcase ID

ASM_13002_TestCase

Test Assertion

ASM-TA-13001

Description

Tests that the SCA runtime rejects an invalid composite file which violates one of the SCA schemas (sca-core.xsd, sca-interface-wsdl.xsd, sca-implementation-composite.xsd and sca-binding-sca.xsd).

Artifacts

ASM_13002_TestCase.java

Test_ASM_13002.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_13003_TestCase



Testcase ID

ASM_13003_TestCase

Test Assertion

ASM-TA-13001

Description

Tests that the SCA runtime rejects an invalid composite file which violates one of the SCA schemas (sca-core.xsd, sca-interface-wsdl.xsd, sca-implementation-composite.xsd and sca-binding-sca.xsd).

Artifacts

ASM_13003_TestCase.java

Test_ASM_13003.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_13004_TestCase



Testcase ID

ASM_13004_TestCase

Test Assertion

ASM-TA-13001

Description

Tests that the SCA runtime rejects an invalid composite file which violates one of the SCA schemas (sca-core.xsd, sca-interface-wsdl.xsd, sca-implementation-composite.xsd and sca-binding-sca.xsd).

Artifacts

ASM_13004_TestCase.java

Test_ASM_13004.composite

TestInvocation.wsdl

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_13005_TestCase



Testcase ID

ASM_13005_TestCase

Test Assertion

ASM-TA-13001

Description

Tests that the SCA runtime rejects an invalid composite file which violates one of the SCA schemas (sca-core.xsd, sca-interface-wsdl.xsd, sca-implementation-composite.xsd and sca-binding-sca.xsd).

Artifacts

ASM_13005_TestCase.java

Test_ASM_13005.composite

TestInvocation.wsdl

TestComposite1.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_13006_TestCase



Testcase ID

ASM_13006_TestCase

Test Assertion

ASM-TA-13001

Description

Tests that the SCA runtime rejects an invalid composite file which violates one of the SCA schemas (sca-core.xsd, sca-interface-wsdl.xsd, sca-implementation-composite.xsd and sca-binding-sca.xsd).

Artifacts

ASM_13006_TestCase.java

Test_ASM_13006.composite

TestClient_0002.composite

TestComposite1.composite

Service1.wsdl

** test.TestInvocation.java **

Expected output

Negative test:

"exception"





ASM_13007_TestCase



Testcase ID

ASM_13007_TestCase

Test Assertion

ASM-TA-13001

Description

Tests that the SCA runtime rejects an invalid composite file which violates one of the SCA schemas (sca-core.xsd, sca-interface-wsdl.xsd, sca-implementation-composite.xsd and sca-binding-sca.xsd).

Artifacts

ASM_13007_TestCase.java

Test_ASM_13007.composite

TestInvocation.wsdl

TestClient_0002.composite

Service1.wsdl

Expected output

Negative test:

"exception"



ASM_13008_TestCase



Testcase ID

ASM_13008_TestCase

Test Assertion

ASM-TA-13001

Description

Tests that the SCA runtime rejects an invalid composite file which violates one of the SCA schemas (sca-core.xsd, sca-interface-wsdl.xsd, sca-implementation-composite.xsd and sca-binding-sca.xsd).

Artifacts

ASM_13008_TestCase.java

Test_ASM_13008.composite

TestInvocation.wsdl

TestClient_0002.composite

Service1.wsdl

Expected output

Negative test:

"exception"





2.10 Section 14

No testcases

3 Cross Mapping of Test Assertions to TestCases



Test Assertion

Test Cases

ASM-TA-4001

ASM_4001_TestCase

ASM-TA-4002

ASM_4002_TestCase

ASM-TA-4003

ASM_4003_TestCase

ASM-TA-4004

ASM_4004_TestCase

ASM-TA-4005

Untestable - wiredByImpl

ASM-TA-4006

ASM_4005_TestCase

ASM-TA-4007

ASM_4006_TestCase

ASM-TA-4008

ASM_5002_TestCase

ASM-TA-4009

ASM_4007_TestCase

ASM-TA-4010

ASM_4007_TestCase

ASM-TA-4011

ASM_4008_TestCase





Test Assertion

Test Cases

ASM-TA-5001

ASM_5005_TestCase

ASM-TA-5002

ASM_5006_TestCase

ASM-TA-5003

ASM_5007_TestCase

ASM-TA-5004

ASM_5008_TestCase

ASM-TA-5005

ASM_5009_TestCase

ASM-TA-5006

ASM_5010_TestCase

ASM-TA-5007

ASM_5032_TestCase

ASM-TA-5008

ASM_5033_TestCase

ASM-TA-5009

ASM_5034_TestCase

ASM-TA-5010

ASM_5011_TestCase

ASM-TA-5011

ASM_5012_TestCase

ASM-TA-5012

ASM_5013_TestCase

ASM_5014_TestCase

ASM-TA-5013

ASM_5015_TestCase

ASM-TA-5014

Untestable - wiredByImpl

ASM-TA-5015

Untestable - wiredByImpl

ASM-TA-5016

ASM_5016_TestCase

ASM-TA-5017

ASM_5017_TestCase

ASM-TA-5018

ASM_5018_TestCase

ASM-TA-5019

Untestable - wiredByImpl

ASM-TA-5020

Untestable - wiredByImpl

ASM-TA-5021

ASM_5019_TestCase

ASM-TA-5022

ASM_5020_TestCase

ASM-TA-5023

ASM_5021_TestCase

ASM-TA-5024

ASM_5018_TestCase

ASM-TA-5025

ASM_5002_TestCase

ASM-TA-5026

ASM_5003_TestCase

ASM-TA-5027

ASM_5004_TestCase

ASM-TA-5028

ASM_5022_TestCase

ASM-TA-5029

ASM_5023_TestCase

ASM-TA-5030

ASM_5024_TestCase

ASM-TA-5031

ASM_5002_TestCase

ASM-TA-5032

ASM_5025_TestCase

ASM-TA-5033

ASM_5026_TestCase

ASM-TA-5034

ASM_5027_TestCase

ASM-TA-5035

ASM_5028_TestCase

ASM-TA-5036

ASM_5029_TestCase

ASM-TA-5037

ASM_5030_TestCase

ASM-TA-5038

ASM_5031_TestCase

ASM-TA-5039

ASM_5035_TestCase

ASM-TA-5040

ASM_5035_TestCase

ASM-TA-5041

ASM_5036_TestCase

ASM-TA-5042

ASM_5037_TestCase

ASM-TA-5043

Requires multiple bindings - leave to Bindings TC to devise a test





Test Assertion

Test Cases

ASM-TA-6001

Untestable - interfaces compatible

ASM-TA-6002

Untestable - interfaces - compatible superset

ASM-TA-6003

Untestable - interfaces - compatible subset

ASM-TA-6004

ASM_6001_TestCase

ASM-TA-6005

Untestable - tests that components run local to each other

ASM-TA-6006

ASM_6002_TestCase

ASM-TA-6007

ASM_6003_TestCase

ASM-TA-6008

ASM_6004_TestCase

ASM-TA-6009

ASM_6005_TestCase

ASM-TA-6010

ASM_6006_TestCase

ASM-TA-6011

ASM_6007_TestCase

ASM-TA-6012

ASM_6008_TestCase

ASM-TA-6013

ASM_6031_TestCase

ASM-TA-6014

ASM_6032_TestCase

ASM-TA-6015

ASM_6009_TestCase

ASM-TA-6016

ASM_6033_TestCase

ASM-TA-6017

ASM_6010_TestCase

ASM-TA-6018

ASM_6011_TestCase

ASM-TA-6019

ASM_6012_TestCase

ASM-TA-6020

ASM_6013_TestCase

ASM-TA-6021

ASM_6014_TestCase

ASM-TA-6022

ASM_6015_TestCase

ASM-TA-6023

ASM_6016_TestCase

ASM-TA-6024

ASM_6017_TestCase

ASM-TA-6025

ASM_6018_TestCase

ASM-TA-6026

ASM_6019_TestCase

ASM-TA-6027

ASM_6020_TestCase

ASM-TA-6028

ASM_6021_TestCase

ASM-TA-6029

ASM_6022_TestCase

ASM-TA-6030

ASM_6023_TestCase

ASM-TA-6031

ASM_6024_TestCase

ASM-TA-6032

ASM_6025_TestCase

ASM-TA-6033

Untestable - no wiredByImpl implementation

ASM-TA-6034

Untestable - no wiredByImpl implementation

ASM-TA-6035

ASM_6026_TestCase

ASM-TA-6036

ASM_6026_TestCase

ASM-TA-6037

ASM_6027_TestCase

ASM-TA-6038

ASM_6028_TestCase

ASM-TA-6039

ASM_6028_TestCase

ASM-TA-6040

ASM_6029_TestCase

ASM-TA-6041

ASM_6030_TestCase









Test Assertion

Test Cases

ASM-TA-7001

ASM_7001_TestCase

ASM-TA-7002

ASM_7002_TestCase

ASM-TA-7003

ASM_7003_TestCase

ASM-TA-7004

Untestable

ASM-TA-7005

ASM_7010_TestCase

ASM-TA-7006

ASM_7001_TestCase

ASM-TA-7007

ASM_7002_TestCase

ASM-TA-7008

ASM_7003_TestCase

ASM-TA-7009

ASM_7004_TestCase

ASM-TA-7010

ASM_7005_TestCase

ASM-TA-7011

ASM_7006_TestCase

ASM-TA-7012

ASM_7007_TestCase

ASM-TA-7013

ASM_7008_TestCase

ASM-TA-7014

ASM_7009_TestCase





Test Assertion

Test Cases

ASM-TA-8001

ASM_8001_TestCase

ASM-TA-8002

ASM_8002_TestCase

ASM-TA-8003

Untestable

ASM-TA-8004

ASM_8003_TestCase

ASM-TA-8005

ASM_8004_TestCase

ASM-TA-8006

ASM_8005_TestCase

ASM-TA-8007

ASM_8003_TestCase

ASM-TA-8008

ASM_8006_TestCase

ASM-TA-8009

ASM_8007_TestCase

ASM-TA-8010

ASM_8008_TestCase

ASM-TA-8011

ASM_8009_TestCase
ASM_8018_TestCase

ASM-TA-8012

ASM_8010_TestCase

ASM-TA-8013

ASM_8011_TestCase

ASM-TA-8014

ASM_8012_TestCase
ASM_8017_TestCase

ASM-TA-8015

ASM_8013_TestCase

ASM-TA-8018

ASM_8014_TestCase

ASM-TA-8020

ASM_8015_TestCase

ASM-TA-8021

ASM_8016_TestCase

ASM-TA-8022

ASM_8019_TestCase





Test Assertion

Test Cases

ASM-TA-9002

ASM_9001_TestCase

ASM-TA-9003

ASM_9002_TestCase

ASM-TA-9004

ASM_9003_TestCase

ASM-TA-9005

ASM_9004_TestCase





Test Assertion

Test Cases

ASM-TA-10001

ASM_10001_TestCase

ASM-TA-10002

ASM_10002_TestCase

ASM-TA-10003

ASM_10003_TestCase





Test Assertion

Test Cases

ASM-TA-12001

Untestable

ASM-TA-12002

ASM_12001_TestCase

ASM-TA-12003

ASM_12001_TestCase

ASM-TA-12005

ASM_12002_TestCase

ASM-TA-12006

ASM_12003_TestCase

ASM-TA-12007

ASM_12004_TestCase

ASM-TA-12008

Optional - not worth testing

ASM-TA-12009

Optional - not worth testing

ASM-TA-12010

ASM_12005_TestCase

ASM-TA-12011

ASM_12002_TestCase

ASM-TA-12012

ASM_12003_TestCase

ASM-TA-12013

ASM_12006_TestCase

ASM-TA-12014

Optional - not worth testing

ASM-TA-12015

Optional - not worth testing

ASM-TA-12016

Optional - not worth testing

ASM-TA-12017

Optional - not worth testing

ASM-TA-12018

Optional - not worth testing

ASM-TA-12019

Requires an SCA runtime configuration update API

ASM-TA-12020

Optional - not worth testing

Requires an SCA runtime configuration update API

ASM-TA-12021

Optional - not worth testing

Requires an SCA runtime configuration update API

ASM-TA-12022

Optional - not worth testing

Requires an SCA runtime configuration update API

ASM-TA-12023

Optional - not worth testing

Requires an SCA runtime configuration update API

ASM-TA-12024

Optional - not worth testing

Requires an SCA runtime configuration update API

ASM-TA-12025

Optional - not worth testing

Requires an SCA runtime configuration update API

ASM-TA-12026

Optional - not worth testing

Requires an SCA runtime configuration update API

ASM-TA-12027

ASM_12007_TestCase

ASM-TA-12028

ASM_12008_TestCase

ASM-TA-12029

ASM_12009_TestCase

ASM-TA-12030

ASM_12010_TestCase

ASM-TA-12031

ASM_12011_TestCase

ASM-TA-12032

ASM_12012_TestCase

ASM-TA-12033

Optional - not worth testing

ASM-TA-12034

Optional - not worth testing

ASM-TA-12035

ASM_12013_TestCase







Test Assertion

Test Cases

ASM-TA-13001

ASM_13001_TestCase

ASM_13002_TestCase

ASM_13003_TestCase

ASM_13004_TestCase

ASM_13005_TestCase

ASM_13006_TestCase

ASM_13007_TestCase

ASM_13008_TestCase

ASM-TA-13002

ASM_12012_TestCase

ASM-TA-13003

ASM_10003_TestCase





Test Assertion

Test Cases

ASM-TA-14001

Optional - not worth testing

ASM-TA-14002

Optional - not worth testing

ASM-TA-14003

Untestable

ASM-TA-14004

Optional - not worth testing

4 Catalog of Test Artifacts



4.1 Composite Files - lower level

Name

Valid

Description

Marked "Impl Specific" if it is implementation type specific


Services and References use interface Service1 unless described otherwise

TestComposite1.composite

"Impl Specific"

Y

1 service

TestComposite2.composite

"Impl Specific"

N

2 services - with same name

0 references

TestComposite3.composite

"Impl Specific"

N

1 service,

2 references - with same name

TestComposite4.composite

"Impl Specific"

Y

1 service,

1 reference (1..1)

TestComposite5.composite

"Impl Specific"

Y

1 service - interface = Service2

0 references

TestComposite6.composite

"Impl Specific"

Y

1 service,

1 reference (1..n)

TestComposite7.composite

"Impl Specific"

Y

1 service,

1 reference (0..n)

TestComposite8.composite

"Impl Specific"

Y

1 service,

1 reference (0..1)

TestComposite9.composite

"Impl Specific"

Y

1 service - superset interface = Service1Superset

0 references

TestComposite10.composite

Y

1 service

1 reference with binding and target

TestComposite11.composite

N

1 service,

1 reference

1 component with 1..1 reference that is wired and promoted

TestComposite12.composite

Y

1 service

0 references

1 property of complex type typed with @type

TestComposite13.composite

Y

1 service

0 references

1 property of complex type typed with @element

TestComposite14.composite

Y

1 service

0 references

1 property of simple type

TestComposite15.composite

Y

1 service - with multiple bindings declared

0 references

TestComposite16.composite

N

3 services - 2 with same name

TestComposite17.composite

N

2 services - 1 with invalid @promote value

TestComposite18.composite

Y

1 service - service interface is compatible subset of interface of promoted component service

TestComposite19.composite

N

1 service,

2 references - with same name

TestComposite20.composite

N

1 service,

1 reference with invalid @promote value

TestComposite21.composite

Y

1 service,

1 reference (1..1) with interface that is compatible superset of interface of promoted component reference

TestComposite22.composite

Y

1 service,

1 reference (1..1) promotes 2 component references with different interfaces declared (Service1, Service1Superset)

TestComposite23.composite

Y

1 service,

1 reference (1..1) that promotes component reference with (0..1) multiplicity

TestComposite24.composite

Y

1 service,

1 reference (0..1) that promotes component reference with (0..n) multiplicity

TestComposite25.composite

Y

1 service,

1 reference (1..1) that promotes component reference with (1..n) multiplicity

TestComposite26.composite

N

1 service,

1 reference,

3 properties - all with same name

TestComposite27.composite

Y

1 service,

2 components, one with @autowire="true" reference , one with service with compatible interface

TestComposite28.composite

Y

1 service,

2 components, one with @autowire="true" reference , one with service with superset interface

TestComposite29.composite

Y

1 service,

4 components, 1 with @autowire="true" reference + set of intents, 1 with service with compatible interface + same set of intents, 2 with service with compatible interface and different set of intents

TestComposite30.composite

N

1 service,

2 components, one with @autowire="true" reference + set of intents, one with service with compatible interface but different set of intents

TestComposite31.composite

N

1 service, composite service has a @promote URI that does not point to a component service within the composite

0 references

TestComposite32.composite

N

1 service, contains a component with a 1..n reference that is neither promoted nor wired internally in the composite

TestComposite33.composite

Y

1 service, 2 properties, plus a component with multiple properties which are sourced from the composite properties

TestComposite34.composite

Y

Composite designed for including within another composite - contains 1 component only

TestComposite35.composite

Y

1 service and 1 reference, where the component that implements the service & reference is included from a second composite (TestComposite36)

TestComposite36.composite

Y

Composite designed for inclusion within another composite - contains 1 component that implements 1 service and 1 reference

TestComposite37.composite

Y

Composite designed for inclusion within another composite - contains 2 components, #1 has 1 service and 1 reference, #2 has 1 service

TestComposite38.composite

Y

Has @local=true, containing 2 components, #1 has 1 service and 1 reference, #2 has 1 service - reference of #1 is wired to service of #2

TestComposite39.composite

N

1 service, 1 reference where the reference has an intent that is mutually exclusive with an intent on the component reference which it promotes

TestComposite40.composite

N

1 service, 1 reference where the reference has @requires containing 2 mutually exclusive intents

TestComposite41.composite

N

1 service, 1 reference, where the reference multiplicity is 0..1 but the component reference which it promotes has multiplicity 1..1

TestComposite42.composite

Y

1 service, composite has @constrainingType set to a constrainingType to which the composite does conform

TestComposite43.composite

Y

1 service,

1 reference,

2 properties. 1 property declares its type using the @type attribute

TestComposite44.composite

Y

1 service,

1 reference,

2 properties. 1 property declares its type using the @element attribute

TestComposite45.composite

N

1 service,

1 reference,

2 properties. 1 property declares its type using both an @element attribute and a @type attribute

TestComposite46.composite

Y

1 service,

1 reference,

2 properties. 1 property declares @mustSupply=true

TestComposite47.composite

N

1 service, 2 references - the references have the same @name attribute value

TestComposite48.composite

Y

2 services

TestComposite49.composite

Y

1 services

2 references, 1 of (0..1), 1 of (0..n)

TestComposite50.composite

Y

1 service, 2 properties with @mustSupply="false"

TestComposite51.composite

N

1 service - with invalid remotable interface - Service3 - that has 2 operations with the same name

TestComposite52.composite

"Impl Specific"

Y

1 service with Service4 interface

TestComposite53.composite

"Impl Specific"

Y

1 service

1 reference with Service4 interface

contains a component which checks whether an input parameter is modified during invocation of an operation on the Service4 interface

TestComposite54.composite

Y

(ASM_8003)

1 service

1 reference with a callback - Service5 & Service5Callback

TestComposite55.composite

Y

(ASM_8003)

1 service with callback - Service5 & Service5Callback

TestComposite56.composite

Y

(ASM_8004)

1 service

1 reference with callback - Service6 & Service6Callback

TestComposite57.composite

Y

(ASM_8004)

1 service with callback - Service6 & Service6Callback

TestComposite58.composite

Y

(ASM_8005)

1 service

1 reference with callback - Service7 and Service7Callback

TestComposite59.composite

Y

(ASM_8005)

1 service with callback - Service7 and Service7Callback

TestComposite60.composite

Y

(ASM_8006)

1 service

1 reference with callback - Service9 & Service9Callback

TestComposite61.composite

Y

(ASM_8006)

1 service with callback - Service9 & Service9Callback

TestComposite62.composite

N

(ASM_8003)

1 service, 1 reference with callback
Callback interface of composite reference is not compatible with callback interface of promoted component reference

TestComposite63.composite

N

(ASM_8003)

1 service with callback - where the callback interface is not compatible with the callback interface on the promoted component service - Service5 & Service8Callback

TestComposite64.composite

N

(ASM_8012)

1 service

1 reference (0..1) with callback - Service1 & Service5Callback - where the promoted component reference has no callback declared

TestComposite65.composite

Y

(ASM_8003)

1 service with a callback - Service5 & Service5Callback - where the implementing component invokes the callback operation multiple times for a single invocation of the forward interface

TestComposite66.composite

"Impl Specific"


1 service, remotable, service has Confidentiality applied

0 references

TestComposite67.composite

Y

* copy of TestComposite5 but in namespace http://oasis/tests2

TestComposite68.

Y

Wrapper of TestComposite5 but in namespace http://oasis/tests2

TestComposite69.composite

Y

1 service

* wrapper of TestComposite1 in namespace http://oasis/tests2

TestComposite70.composite

"Impl Specific"

Y

1 service,

1 reference (1..1) - interface Service1Superset

TestComposite71.composite

"Impl Specific"

Y

1 service

0 references

2 properties of type string

TestComposite72.composite

N

(ASM_8017)

1 service

1 service with callback - Service1 & Service5Callback - where the promoted component service has no callback declared

0 references



4.2 Constraint Files



Name

Description

Test_ASM_7001.constraint

2 services

0 references

1 property

Test_ASM_7002.constraint

1 service

2 references

2 properties

Test_ASM_7003.constraint

1 service

0 references

2 properties

Test_ASM_7004.constraint

1 service

1 property

TestComposite42.constraint

1 service

1 property

Test_ASM_7010_A.constraint

1 service

1 reference

1 property

Same @name value as Test_ASM_7010_B.constraint

Test_ASM_7010_B.constraint

1 service

0 references

1 property

Same @name value as Test_ASM_7010_A.constraint

4.3 Java Interfaces



Name

Description

test.Service1.java

1 operation with 1 input, 1 output parameter

test.Service2.java

Remotable service interface that is not compatible with Service1 interface

test.Service1Superset.java

Remotable service interface which is a superset of Service1 interface

2 operations with 1 input,1 output parameter

test.Service3.java

(ASM_8001)

Remotable interface with 2 operations with the same name - it is also a superset of Service1

test.Service4.java

Remotable service interface

1 operation with 1 input, 1 output parameter

- input parameter is a Java mutable type

test.Service5.java

Remotable service interface with a Callback interface (Service5Callback)

1 operation with 1 input, 1 output parameter

test.Service5Callback.java

Remotable callback interface for Service5,

1 operation with 1 input, 1 output parameter

test.Service1_Intent

Service1 interface + Confidentiality intent

1 operation with 1 input, 1 output parameter

test.Service6.java

Remotable service interface with a local callback interface (Service6Callback)

1 operation with 1 input, 1 output parameter

test.Service7.java

Local service interface with a remotable callback interface (Service7Callback)

1 operation with 1 input, 1 output parameter



test.Service6Callback.java

Callback interface for Service6 - local

1 operation with 1 input, 1 output parameter

test.Service7Callback.java

Callback interface for Service7 - remotable

1 operation with 1 input, 1 output parameter

test.Service8Callback

Remotable callback interface incompatible with Service5Callback interface





4.4 Java Implementation Classes



Name

Description


Services and references use interface Service1 unless otherwise described

test.service1Impl.java

1 service

0 references

test.service1Impl2.java

1 service

1 reference (1..1)

test.service1Impl3.java

1 service

1 reference (1..n)

test.service1Impl4.java

1 service

1 reference (0..n)

test.service1Impl5.java

1 service

0 references

3 properties

test.service1Impl6.java

1 service

1 reference (0..1)

test.service1impl7.java

1 service

1 reference (1..1) with interface Service4

- operation1 method calls reference operation and checks for modification of the input parameter

test.Service1Impl8.java

1 service

1 reference (1..1) - interface Service1Superset

test.service2Impl.java

1 service with interface Service2

test.service1SupersetImpl.java

1 service with interface Service1Superset

test.service3Impl.java

1 service with interface Service3

test.service4impl.java

1 service with interface Service4

- service operation modifies input parameter

test.service6Impl.java

1 service with interface Service6

test.service7Impl.java

1 service with interface Service7

test.service1Callback6Impl.java

1 service

1 reference with Service6/Service6Callback interfaces

test.service1Callback7Impl.java

1 service

1 reference with Service7/Service7Callback

TestException.java

Exception returned if test application receives an exception during execution

TestInvocation.java

Client testcase invocation interface



ASM_0001_Client.java

Client invocation component

1 service

0 references

ASM_0002_Client.java

"Standard" client invocation component

1 service

1 reference (0..1)

ASM_0003_Client.java

Client invocation component

1 service

1 reference (1..n)





4.5 WSDL Interface Files



Name

Description

Service1.wsdl

portType = Service1

1 operation with 1 input, 1 output parameter

Service1Superset.wsdl

portType = Service1Superset - superset of Service1

2 operations - 1 input, 1 output parameter

Service1_Intent.wsdl

portType = Service1_Intent

equivalent to Service1, but with @requires="sca:confidentiality" applied to the portType element

1 operation with 1 input, 1 output parameter

Service1a.wsdl

Version of Service1.wsdl containing no XML type declarations, but instead containing a @schemaLocation attribute, but one which points to an valid XSD file

Service1b.wsdl

Version of Service1.wsdl containing no XML type declarations, but instead containing a @schemaLocation attribute, but one which points to an invalid file

Service2.wsdl

1 service - incompatible with Service1

1 operation with 1 input, 1 output parameter

Service3.wsdl

portType = Service3

2 operations - overloaded with the same name

operation1 has string in string out

operation1a has int in string out

Service4.wsdl

portType = Service4

1 operation with 1 input, 1 output parameter

- input parameter is stringBuffer

Service5.wsdl

Remotable service interface with a single operation with 1 input and 1 output parameter and a Callback interface

Service9.wsdl

Remotable service interface, with @callback attribute applied to the portType element

1 operation with 1 input and 1 output parameter

Service5Callback.wsdl

Remotable callback interface for Service5, with a single operation with 1 input and 1 output parameter

Service8Callback.wsdl

Callback interface which is not compatible with other Callback interfaces (uses a different operation name)

1 operation with 1 input and 1 output parameter

Service9Callback.wsdl

Callback interface for Service9

1 operation with 1 input and 1 output parameter











5 Conformance

There are no conformance statements relating to the TestCases.



  1. Acknowledgments

The following individuals have participated in the creation of this specification and are gratefully acknowledged

Participants:


Participant Name

Affiliation

Bryan Aupperle

IBM

Vladislav Bezrukov

SAP AG*

David Booz

IBM

Martin Chapman

Oracle Corporation

Vamsavardhana Reddy Chillakuru

IBM

Mark Combellack

Avaya, Inc.

Mike Edwards

IBM

Anish Karmarkar

Oracle Corporation

Ashok Malhotra

Oracle Corporation

Plamen Pavlov

SAP AG*

Eric Wells

Hitachi, Ltd.




  1. Non-Normative Text



  1. Revision History



Revision

Date

Editor

Changes Made

17

2009-04-15

Mike Edwards

Section 4 testcases added

18

2009-04-16

Mike Edwards

Section 7 testcases added

Tables of Artifacts added

19

05/04/09

Mike Edwards

Section 8, 9, 10 testcases added

20

05/06/09

Mike Edwards

Section 12 testcases added

21

05/06/09

Mike Edwards

Section 13, 14 testcases added. All sections now covered.

22

05/19/09

Mike Edwards

Most testcases converted to WSDL interfaces

23

06/02/09

Mike Edwards

Added Acknowledgements

Added missing descriptions of artifacts

Added extra testcases to cover previously untreated Test Assertions

24

06/10/09

Mike Edwards

Added ASM_7010_TestCase

Added ASM_8017_TestCase

Added ASM_8018_TestCase

Added ASM_8019_TestCase

Added Namespace and Package Name declarations

25

06/16/09

Mike Edwards

CD01 / Public Review draft 01

All changes accepted, file name changed to match OASIS guidelines.



sca-assembly-1.1-testcases-cd01 16 June 2009
Copyright ©
OASIS® 2009. All Rights Reserved. Page 7 of 99