From a40e527938d76ba71f211da7e327adb50384ba69 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:26:33 +0000 Subject: Moving 1.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835157 13f79535-47bb-0310-9956-ffa450edef68 --- tags/java/sca/1.5.1-RC1/itest/validation/pom.xml | 166 -------------- .../main/java/binding/ejb/account/Customer.java | 35 --- .../java/binding/ejb/account/CustomerImpl.java | 57 ----- .../java/binding/ejb/calculator/AddService.java | 27 --- .../binding/ejb/calculator/AddServiceHome.java | 31 --- .../main/java/binding/jms/HelloWorldService.java | 26 --- .../java/binding/jms/HelloWorldServiceImpl.java | 27 --- .../main/java/calculator/warning/AddService.java | 32 --- .../java/calculator/warning/AddServiceImpl.java | 44 ---- .../warning/AddServiceImplWithServiceName.java | 46 ---- .../java/calculator/warning/CalculatorClient.java | 45 ---- .../java/calculator/warning/CalculatorService.java | 35 --- .../calculator/warning/CalculatorServiceImpl.java | 70 ------ .../java/calculator/warning/DivideService.java | 28 --- .../java/calculator/warning/DivideServiceImpl.java | 35 --- .../java/calculator/warning/MultiplyService.java | 28 --- .../calculator/warning/MultiplyServiceImpl.java | 35 --- .../java/calculator/warning/PropertyService.java | 29 --- .../calculator/warning/PropertyServiceImpl.java | 41 ---- .../java/calculator/warning/SubtractService.java | 28 --- .../calculator/warning/SubtractServiceImpl.java | 35 --- .../SubtractServiceImplWithServiceName.java | 38 ---- .../src/main/java/impl/java/AddService.java | 29 --- .../src/main/java/impl/java/AddServiceImpl.java | 44 ---- .../src/main/java/impl/java/CalculatorClient.java | 45 ---- .../src/main/java/impl/java/CalculatorService.java | 35 --- .../main/java/impl/java/CalculatorServiceImpl.java | 75 ------- .../src/main/java/impl/java/DivideService.java | 28 --- .../src/main/java/impl/java/DivideServiceImpl.java | 35 --- .../src/main/java/impl/java/MultiplyService.java | 28 --- .../main/java/impl/java/MultiplyServiceImpl.java | 35 --- .../src/main/java/impl/java/SubtractService.java | 28 --- .../main/java/impl/java/SubtractServiceImpl.java | 35 --- .../src/main/java/impl/osgi/OSGiTestImpl.java | 50 ----- .../src/main/java/impl/osgi/OSGiTestInterface.java | 31 --- .../java/impl/osgi/OSGiTestWithPropertyImpl.java | 65 ------ .../src/main/java/impl/spring/HelloWorld.java | 36 --- .../src/main/java/impl/spring/HelloWorldProxy.java | 41 ---- .../main/java/impl/spring/TestHelloWorldBean.java | 36 --- .../java/interfacejava/xml/CalculatorService.java | 35 --- .../interfacejava/xml/CalculatorServiceImpl.java | 75 ------- .../Calculator.composite | 49 ----- .../DuplicateComponentName/Calculator.composite | 53 ----- .../Calculator.composite | 55 ----- .../dummyImplementation.composite | 31 --- .../Calculator.composite | 56 ----- .../dummyImplementation.composite | 32 --- .../DuplicatePropertyName/Calculator.composite | 51 ----- .../DuplicateReferenceName/Calculator.composite | 50 ----- .../META-INF/sca/SpringHelloWorld-context.xml | 31 --- .../Calculator.composite | 53 ----- .../NoComponentImplementation/Calculator.composite | 52 ----- .../NoCompositeNamespace/Calculator.composite | 48 ---- .../NoMatchingBinding/Calculator.composite | 54 ----- .../PromotedReferenceNotFound/Calculator.composite | 51 ----- .../PromotedServiceNotFound/Calculator.composite | 51 ----- .../PropertyAttribute/Calculator.composite | 55 ----- .../CalculatorNullMustSupply.composite | 53 ----- .../CalculatorOverrideManyAttribute.composite | 54 ----- .../PropertyNotFound/Calculator.composite | 50 ----- .../Calculator.composite | 51 ----- .../Calculator.composite | 49 ----- .../Calculator.composite | 49 ----- .../ReferenceNotFound/Calculator.composite | 50 ----- .../ReferenceWithoutTargets/Calculator.composite | 49 ----- .../Calculator.composite | 54 ----- .../Calculator.composite | 54 ----- .../resources/XsdValidation/Calculator.composite | 51 ----- .../ContributionReadException/Calculator.composite | 53 ----- .../Calculator.composite | 53 ----- .../Calculator.composite | 54 ----- .../UnexpectedBindingElement/Calculator.composite | 55 ----- .../Calculator.composite | 54 ----- .../Calculator.composite | 54 ----- .../InvalidWsdlElementAttr/Calculator.composite | 58 ----- .../wsxml/MissingImportedXSD/helloworld.wsdl | 76 ------- .../MissingImportedXSD/helloworldwsjms.composite | 34 --- .../wsxml/MustUseWsdlBinding/Calculator.composite | 59 ----- .../wsxml/WsdlBindingDoesNotMatch/helloworld.wsdl | 92 -------- .../helloworldwsjms.composite | 34 --- .../wsxml/WsdlPortTypeDoesNotMatch/helloworld.wsdl | 92 -------- .../helloworldwsclient.composite | 45 ---- .../wsxml/WsdlServiceDoesNotMatch/helloworld.wsdl | 92 -------- .../helloworldwsjms.composite | 34 --- .../UnknownEJBSessionType/account.composite | 35 --- .../bindingejb/UnknownEJBVersion/account.composite | 35 --- .../DoesntProcessActivationSpec/service.composite | 36 --- .../DoesntProcessDestinationType/service.composite | 35 --- .../DoesntProcessHeaders/service.composite | 36 --- .../DoesntProcessResourceAdapter/service.composite | 32 --- .../service.composite | 35 --- .../service.composite | 35 --- .../service.composite | 35 --- .../InvalidCorrelationScheme/service.composite | 35 --- .../InvalidJMSDeliveryMode/service.composite | 36 --- .../InvalidJMSPriority/service.composite | 36 --- .../service.composite | 35 --- .../MissingActivationSpecName/service.composite | 36 --- .../MissingConnectionFactoryName/service.composite | 36 --- .../service.composite | 36 --- .../service.composite | 36 --- .../MustStartWithSchema/service.composite | 36 --- .../bindingjms/UnexpectedElement/service.composite | 40 ---- .../bindingjms/UnknownTokenInURI/service.composite | 36 --- .../AttributePackageMissing/Calculator.composite | 55 ----- .../AttributeNameSpaceMissing/Calculator.composite | 55 ----- .../AttributeURIMissing/Calculator.composite | 55 ----- .../META-INF/sca-contribution.xml | 24 -- .../AttributeCompositeMissing/Calculator.composite | 53 ----- .../AttributeCompositeMissing/sca-contribution.xml | 24 -- .../MultipleCompositeErrors/Calculator.composite | 53 ----- .../MultipleCompositeErrors/sca-contribution.xml | 31 --- .../helloworld.composite | 29 --- .../AttributeWithoutNamespace/helloworld.composite | 29 --- .../impl/bpel/BPELProcessNotFound/helloworld.bpel | 66 ------ .../bpel/BPELProcessNotFound/helloworld.composite | 29 --- .../impl/bpel/BPELProcessNotFound/helloworld.wsdl | 82 ------- .../CannotResolveWSDLReference/helloworld.bpel | 66 ------ .../helloworld.composite | 29 --- .../bpel/MyRolePartnerRoleNull/helloworld.bpel | 66 ------ .../MyRolePartnerRoleNull/helloworld.composite | 29 --- .../bpel/MyRolePartnerRoleNull/helloworld.wsdl | 82 ------- .../bpel/PartnerLinkHasBothAttr/helloworld.bpel | 68 ------ .../PartnerLinkHasBothAttr/helloworld.composite | 29 --- .../bpel/PartnerLinkHasBothAttr/helloworld.wsdl | 82 ------- .../bpel/PartnerLinkNoMatchingType/helloworld.bpel | 66 ------ .../PartnerLinkNoMatchingType/helloworld.composite | 29 --- .../bpel/PartnerLinkNoMatchingType/helloworld.wsdl | 82 ------- .../bpel/PartnerLinkTypeNoRoles/helloworld.bpel | 66 ------ .../PartnerLinkTypeNoRoles/helloworld.composite | 29 --- .../bpel/PartnerLinkTypeNoRoles/helloworld.wsdl | 80 ------- .../impl/ejb/EJBLinkAttributeMissing/ejb.composite | 29 --- .../ClassNotFoundException/Calculator.composite | 49 ----- .../Calculator.composite | 49 ----- .../OSGiTestService.componentType | 28 --- .../CouldNotLocateOSGiBundle/osgitest.composite | 34 --- .../MissingComponentTypeFile/osgitest.composite | 35 --- .../OSGiTestService.componentType | 28 --- .../PropertyShouldSpecifySR/osgitest.composite | 36 --- .../CouldNotResolveLocation/resource.composite | 30 --- .../LocationAttributeMissing/resource.composite | 30 --- .../SpringHelloWorld.composite | 27 --- .../SpringHelloWorld.composite | 27 --- .../SpringHelloWorld-context.xml | 0 .../SpringHelloWorld.composite | 34 --- .../TestHelloWorldBean.componentType | 27 --- .../CouldNotResolveLocation/widget.composite | 29 --- .../LocationAttributeMissing/widget.composite | 30 --- .../xquery/CouldNotLocateFile/HelloWorld.composite | 28 --- .../LocationAttributeMissing/HelloWorld.composite | 28 --- .../ClassNotFoundException/Calculator.composite | 53 ----- .../CalculatorServiceImpl.componentType | 27 --- .../Calculator.composite | 53 ----- .../CalculatorServiceImpl.componentType | 27 --- .../InvalidWSDLInterfaceAttr/Calculator.composite | 54 ----- .../helloworld-interface.wsdl | 67 ------ .../helloworld-service.wsdl | 49 ----- .../xml/WsdlInterfaceDoesNotMatch/helloworld.wsdl | 92 -------- .../helloworldwsjms.composite | 34 --- .../ClassNotFoundException/Calculator.composite | 56 ----- .../ClassNotFoundException/definitions.xml | 78 ------- .../Calculator.composite | 56 ----- .../RequiredAttributeRolesMissing/definitions.xml | 78 ------- .../Calculator.composite | 56 ----- .../AlwaysProvidedIntentNotFound/definitions.xml | 63 ------ .../Calculator.composite | 56 ----- .../ErrorInPolicyIntentDefinition/definitions.xml | 76 ------- .../xml/IntentNotSpecified/Calculator.composite | 56 ----- .../policy/xml/IntentNotSpecified/definitions.xml | 175 --------------- .../MayProvideIntentNotFound/Calculator.composite | 56 ----- .../xml/MayProvideIntentNotFound/definitions.xml | 63 ------ .../RequiredAttributeMissing/Calculator.composite | 56 ----- .../xml/RequiredAttributeMissing/definitions.xml | 70 ------ .../xml/UnableToMapPolicies/Calculator.composite | 56 ----- .../policy/xml/UnableToMapPolicies/definitions.xml | 242 --------------------- .../Calculator.composite | 56 ----- .../definitions.xml | 68 ------ .../assembly/xml/ContributionReadException.java | 61 ------ .../xml/PolicyImplValidationException.java | 61 ------ .../xml/PolicyServiceValidationException.java | 61 ------ .../assembly/xml/UnexpectedBindingElement.java | 61 ------ .../xml/UnexpectedImplementationElement.java | 61 ------ .../assembly/xml/UnexpectedInterfaceElement.java | 60 ----- .../binding/ejb/UnknownEJBSessionTypeTestCase.java | 67 ------ .../binding/ejb/UnknownEJBVersionTestCase.java | 66 ------ .../jms/DoesntProcessDestinationTypeTestCase.java | 60 ----- .../binding/jms/DoesntProcessHeadersTestCase.java | 62 ------ ...esntProcessResponseDestinationTypeTestCase.java | 60 ----- .../jms/InvalidCorrelationSchemeTestCase.java | 60 ----- .../jms/InvalidJMSDeliveryModeTestCase.java | 60 ----- .../binding/jms/InvalidJMSPriorityTestCase.java | 60 ----- .../InvalidResponseDestinationTypeTestCase.java | 60 ----- .../jms/MissingActivationSpecNameTestCase.java | 60 ----- .../jms/MissingConnectionFactoryNameTestCase.java | 60 ----- .../jms/MissingResponseActivationSpecTestCase.java | 60 ----- .../MissingResponseConnectionFactoryTestCase.java | 60 ----- .../binding/jms/MustStartWithSchemaTestCase.java | 60 ----- .../binding/jms/UnexpectedElementTestCase.java | 60 ----- .../binding/jms/UnknownTokenInURITestCase.java | 60 ----- .../wsxml/InvalidWsdlElementAttrTestCase.java | 61 ------ .../binding/wsxml/MissingImportedXSDTestCase.java | 64 ------ .../binding/wsxml/MustUseWsdlBindingTestCase.java | 61 ------ .../wsxml/WsdlBindingDoesNotMatchTestCase.java | 61 ------ .../wsxml/WsdlPortTypeDoesNotMatchTestCase.java | 60 ----- .../wsxml/WsdlServiceDoesNotMatchTestCase.java | 61 ------ .../ComponentReferenceTargetNotFoundTestCase.java | 77 ------- .../warning/DuplicateComponentNameTestCase.java | 61 ------ ...uplicateImplementationPropertyNameTestCase.java | 65 ------ ...plicateImplementationReferenceNameTestCase.java | 66 ------ .../warning/DuplicatePropertyNameTestCase.java | 71 ------ .../warning/DuplicateReferenceNameTestCase.java | 73 ------- .../MultipleBindingsForServiceTestCase.java | 71 ------ .../warning/NoComponentImplementationTestCase.java | 67 ------ .../warning/NoCompositeNamespaceTestCase.java | 71 ------ .../warning/NoMatchingBindingTestCase.java | 73 ------- .../warning/PromotedReferenceNotFoundTestCase.java | 71 ------ .../warning/PromotedServiceNotFoundTestCase.java | 71 ------ .../PropertyAttributeMustSupplyNullTestCase.java | 71 ------ .../warning/PropertyAttributeTestCase.java | 71 ------ .../warning/PropertyNotFoundTestCase.java | 71 ------ .../PropertyOverrideManyAttributeTestCase.java | 71 ------ ...enceIncompatibleComponentInterfaceTestCase.java | 71 ------ .../ReferenceIncompatibleInterfaceTestCase.java | 71 ------ .../ReferenceIncompatibleMultiplicityTestCase.java | 71 ------ .../warning/ReferenceNotFoundTestCase.java | 82 ------- .../warning/ReferenceWithoutTargetsTestCase.java | 71 ------ ...ServiceNotFoundForComponentServiceTestCase.java | 71 ------ .../UnresolvedComponentImplementationTestCase.java | 67 ------ .../calculator/warning/XSDValidationTestCase.java | 67 ------ .../java/AttributePackageMissingTestCase.java | 61 ------ .../AttributeNameSpaceMissingTestCase.java | 61 ------ .../resource/AttributeURIMissingTestCase.java | 61 ------ .../xml/AttributeCompositeMissingTestCase.java | 61 ------ .../xml/MultipleCompositeErrorsTestCase.java | 64 ------ .../test/java/domain/CustomCompositeBuilder.java | 227 ------------------- .../AttributeUnrecognizedNamespaceTestCase.java | 61 ------ .../bpel/AttributeWithoutNamespaceTestCase.java | 60 ----- .../impl/bpel/BPELProcessNotFoundTestCase.java | 60 ----- .../bpel/CannotResolveWSDLReferenceTestCase.java | 62 ------ .../impl/bpel/MyRolePartnerRoleNullTestCase.java | 60 ----- .../impl/bpel/PartnerLinkHasBothAttrTestCase.java | 59 ----- .../bpel/PartnerLinkNoMatchingTypeTestCase.java | 61 ------ .../impl/bpel/PartnerLinkTypeNoRolesTestCase.java | 61 ------ .../impl/ejb/EJBLinkAttributeMissingTestCase.java | 60 ----- .../impl/java/ClassNotFoundExceptionTestCase.java | 60 ----- .../java/ContributionResolveExceptionTestCase.java | 61 ------ .../osgi/CouldNotLocateOSGiBundleTestCase.java | 64 ------ .../osgi/MissingComponentTypeFileTestCase.java | 66 ------ .../src/test/java/impl/osgi/OSGiTestBundles.java | 111 ---------- .../impl/osgi/PropertyShouldSpecifySRTestCase.java | 64 ------ .../resource/CouldNotResolveLocationTestCase.java | 59 ----- .../resource/LocationAttributeMissingTestCase.java | 60 ----- .../ContributionResolveExceptionTestCase.java | 57 ----- .../spring/LocationAttributeMissingTestCase.java | 60 ----- .../UnableToResolveComponentTypeTestCase.java | 60 ----- .../widget/CouldNotResolveLocationTestCase.java | 59 ----- .../widget/LocationAttributeMissingTestCase.java | 60 ----- .../impl/xquery/CouldNotLocateFileTestCase.java | 60 ----- .../xquery/LocationAttributeMissingTestCase.java | 60 ----- .../interfacejava/xml/ClassNotFoundTestCase.java | 60 ----- .../xml/ContributionResolveExceptionTestCase.java | 60 ----- .../xml/InvalidWSDLInterfaceAttrTestCase.java | 60 ----- .../xml/WsdlInterfaceDoesNotMatchTestCase.java | 60 ----- .../xml/AlwaysProvidedIntentNotFoundTestCase.java | 60 ----- .../xml/ErrorInPolicyIntentDefinitionTestCase.java | 60 ----- .../policy/xml/IntentNotSpecifiedTestCase.java | 59 ----- .../xml/MayProvideIntentNotFoundTestCase.java | 60 ----- .../xml/RequiredAttributeMissingTestCase.java | 60 ----- .../policy/xml/UnableToMapPoliciesTestCase.java | 65 ------ .../UnrecognizedIntentAttachPointTypeTestCase.java | 60 ----- 270 files changed, 14654 deletions(-) delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/pom.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/account/Customer.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/account/CustomerImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/calculator/AddService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/calculator/AddServiceHome.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/jms/HelloWorldService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/jms/HelloWorldServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddServiceImplWithServiceName.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorClient.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/DivideService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/DivideServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/MultiplyService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/MultiplyServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/PropertyService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/PropertyServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractServiceImplWithServiceName.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/AddService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/AddServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorClient.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/DivideService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/DivideServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/MultiplyService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/MultiplyServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/SubtractService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/SubtractServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestInterface.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestWithPropertyImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/HelloWorld.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/HelloWorldProxy.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/TestHelloWorldBean.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/interfacejava/xml/CalculatorService.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/interfacejava/xml/CalculatorServiceImpl.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ComponentReferenceTargetNotFound/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateComponentName/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationPropertyName/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationPropertyName/dummyImplementation.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationReferenceName/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationReferenceName/dummyImplementation.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicatePropertyName/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateReferenceName/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/META-INF/sca/SpringHelloWorld-context.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/MultipleBindingsForService/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoComponentImplementation/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoCompositeNamespace/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoMatchingBinding/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PromotedReferenceNotFound/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PromotedServiceNotFound/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/CalculatorNullMustSupply.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/CalculatorOverrideManyAttribute.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyNotFound/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleComponentInterface/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleInterface/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleMultiplicity/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceNotFound/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceWithoutTargets/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ServiceNotFoundForComponentService/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/UnresolvedComponentImplementation/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/XsdValidation/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/ContributionReadException/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/PolicyImplValidationException/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/PolicyServiceValidationException/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedBindingElement/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedImplementationElement/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedInterfaceElement/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/InvalidWsdlElementAttr/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworldwsjms.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MustUseWsdlBinding/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworldwsjms.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworldwsclient.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworldwsjms.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingejb/UnknownEJBSessionType/account.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingejb/UnknownEJBVersion/account.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessActivationSpec/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessDestinationType/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessHeaders/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResourceAdapter/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseActivationSpec/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseConnectionFactory/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseDestinationType/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidCorrelationScheme/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidResponseDestinationType/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingActivationSpecName/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingConnectionFactoryName/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingResponseActivationSpec/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingResponseConnectionFactory/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MustStartWithSchema/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/UnexpectedElement/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/UnknownTokenInURI/service.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/java/AttributePackageMissing/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/namespace/AttributeNameSpaceMissing/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/sca-contribution.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/sca-contribution.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/AttributeUnrecognizedNamespace/helloworld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/AttributeWithoutNamespace/helloworld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.bpel delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.bpel delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.bpel delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.bpel delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.bpel delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.bpel delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/ejb/EJBLinkAttributeMissing/ejb.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/java/ClassNotFoundException/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/java/ContributionResolveException/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/OSGiTestService.componentType delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/osgitest.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/MissingComponentTypeFile/osgitest.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.componentType delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/osgitest.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/resource/CouldNotResolveLocation/resource.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/resource/LocationAttributeMissing/resource.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/ContributionResolveException/SpringHelloWorld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/LocationAttributeMissing/SpringHelloWorld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld-context.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/TestHelloWorldBean.componentType delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/widget/CouldNotResolveLocation/widget.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/widget/LocationAttributeMissing/widget.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/xquery/CouldNotLocateFile/HelloWorld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/xquery/LocationAttributeMissing/HelloWorld.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/CalculatorServiceImpl.componentType delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/CalculatorServiceImpl.componentType delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-interface.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-service.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworld.wsdl delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworldwsjms.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/ClassNotFoundException/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/ClassNotFoundException/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/Calculator.composite delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/definitions.xml delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/ContributionReadException.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/PolicyImplValidationException.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/PolicyServiceValidationException.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedBindingElement.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedImplementationElement.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedInterfaceElement.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/ejb/UnknownEJBSessionTypeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/ejb/UnknownEJBVersionTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/InvalidWsdlElementAttrTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/MissingImportedXSDTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/MustUseWsdlBindingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlBindingDoesNotMatchTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlPortTypeDoesNotMatchTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlServiceDoesNotMatchTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ComponentReferenceTargetNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateComponentNameTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateImplementationPropertyNameTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateImplementationReferenceNameTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicatePropertyNameTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateReferenceNameTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/MultipleBindingsForServiceTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoComponentImplementationTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoCompositeNamespaceTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoMatchingBindingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PromotedReferenceNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PromotedServiceNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyAttributeMustSupplyNullTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyAttributeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyOverrideManyAttributeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleComponentInterfaceTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleInterfaceTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleMultiplicityTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceWithoutTargetsTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ServiceNotFoundForComponentServiceTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/UnresolvedComponentImplementationTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/XSDValidationTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/java/AttributePackageMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/namespace/AttributeNameSpaceMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/xml/AttributeCompositeMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/xml/MultipleCompositeErrorsTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/domain/CustomCompositeBuilder.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/AttributeUnrecognizedNamespaceTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/AttributeWithoutNamespaceTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/BPELProcessNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/CannotResolveWSDLReferenceTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/MyRolePartnerRoleNullTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkHasBothAttrTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkNoMatchingTypeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkTypeNoRolesTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/ejb/EJBLinkAttributeMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/java/ClassNotFoundExceptionTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/java/ContributionResolveExceptionTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/CouldNotLocateOSGiBundleTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/MissingComponentTypeFileTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/OSGiTestBundles.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/PropertyShouldSpecifySRTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/resource/CouldNotResolveLocationTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/resource/LocationAttributeMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/ContributionResolveExceptionTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/LocationAttributeMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/UnableToResolveComponentTypeTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/widget/CouldNotResolveLocationTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/widget/LocationAttributeMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/xquery/CouldNotLocateFileTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/xquery/LocationAttributeMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacejava/xml/ClassNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacejava/xml/ContributionResolveExceptionTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacewsdl/xml/InvalidWSDLInterfaceAttrTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacewsdl/xml/WsdlInterfaceDoesNotMatchTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/AlwaysProvidedIntentNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/ErrorInPolicyIntentDefinitionTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/IntentNotSpecifiedTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/MayProvideIntentNotFoundTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/RequiredAttributeMissingTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/UnableToMapPoliciesTestCase.java delete mode 100644 tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/UnrecognizedIntentAttachPointTypeTestCase.java (limited to 'tags/java/sca/1.5.1-RC1/itest/validation') diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/pom.xml b/tags/java/sca/1.5.1-RC1/itest/validation/pom.xml deleted file mode 100644 index fe88fc3aba..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/pom.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-itest - 1.5.1 - ../pom.xml - - itest-validation - Apache Tuscany SCA iTest Validation - - - - - org.apache.tuscany.sca - tuscany-monitor - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-contribution-resource - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-node-impl - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-workspace-impl - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-implementation-bpel - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-implementation-xquery - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-implementation-spring - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-implementation-osgi - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-implementation-ejb - 1.5.1 - - - org.apache.openejb - javaee-api - - - - - - - org.apache.tuscany.sca - tuscany-osgi-runtime - 1.5.1 - - - - org.apache.felix - org.apache.felix.main - 1.0.4 - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.5.1 - test - - - - org.apache.tuscany.sca - tuscany-binding-ejb-runtime - 1.5.1 - - - org.apache.openejb - javaee-api - - - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-implementation-resource-runtime - 1.5.1 - - - - org.apache.tuscany.sca - tuscany-binding-jms-runtime - 1.5.1 - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/account/Customer.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/account/Customer.java deleted file mode 100644 index acb74c38ae..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/account/Customer.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.ejb.account; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Customer { - - /** - * This method deposits the amount. method accesses external EJB to get the - * current balance and add the amount to existing balance. - * - * @param String amount to be deposited - * @return total amount in customer account after deposit - */ - Double depositAmount(java.lang.String accountNo, Double amount); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/account/CustomerImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/account/CustomerImpl.java deleted file mode 100644 index 52ddfa9aba..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/account/CustomerImpl.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.ejb.account; - -import org.osoa.sca.ServiceRuntimeException; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import binding.ejb.calculator.AddService; - -@Service(Customer.class) -public class CustomerImpl implements Customer { - - private AddService extEJBService = null; - - public AddService getExtEJBService() { - return extEJBService; - } - - @Reference - public void setExtEJBService(AddService extEJBService) { - this.extEJBService = extEJBService; - } - - // this method invokes external EJB through EJB reference binding - public Double depositAmount(java.lang.String accountNo, Double amount) { - - Double total = null; - - System.out.println("In component implementation. Invoking external EJB through EJB reference binding "); - - try { - Double balance = extEJBService.add(amount.doubleValue(), 1000); //invoke external ejb through ejb reference binding - total = balance + amount; - } catch (Exception e) { - throw new ServiceRuntimeException(e); - } - return total; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/calculator/AddService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/calculator/AddService.java deleted file mode 100644 index aec8998083..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/calculator/AddService.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package binding.ejb.calculator; - -/** - * @version $Rev$ $Date$ - */ -public interface AddService { - double add(double n1, double n2); -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/calculator/AddServiceHome.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/calculator/AddServiceHome.java deleted file mode 100644 index 5df24b6379..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/ejb/calculator/AddServiceHome.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package binding.ejb.calculator; - -import java.rmi.RemoteException; - -import javax.ejb.CreateException; -import javax.ejb.EJBHome; - -public interface AddServiceHome extends EJBHome { - - AddService create() throws CreateException, RemoteException; - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/jms/HelloWorldService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/jms/HelloWorldService.java deleted file mode 100644 index 33bfe1d0ea..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/jms/HelloWorldService.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface HelloWorldService { - String sayHello(String name); -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/jms/HelloWorldServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/jms/HelloWorldServiceImpl.java deleted file mode 100644 index a6a40b0ed1..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/binding/jms/HelloWorldServiceImpl.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - return "jmsHello " + name; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddService.java deleted file mode 100644 index 35ba2cbfac..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddService.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import org.osoa.sca.annotations.Remotable; - -/** - * The Add service interface - */ -@Remotable -public interface AddService { - - double add(double n1, double n2); - String getServiceName(); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddServiceImpl.java deleted file mode 100644 index ef305370cc..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddServiceImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.util.logging.Level; -import java.util.logging.Logger; - -import org.osoa.sca.annotations.Property; - -/** - * An implementation of the Add service - */ -public class AddServiceImpl implements AddService { - - @Property(name="serviceName") - protected String serviceName = "addService"; - - public double add(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Adding " + n1 + " and " + n2); - return n1 + n2; - } - - public String getServiceName(){ - return serviceName; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddServiceImplWithServiceName.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddServiceImplWithServiceName.java deleted file mode 100644 index aacde27842..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/AddServiceImplWithServiceName.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.util.logging.Level; -import java.util.logging.Logger; - -import org.osoa.sca.annotations.Property; -import org.osoa.sca.annotations.Service; - -/** - * An implementation of the Add service - */ -@Service(AddService.class) -public class AddServiceImplWithServiceName implements AddService { - - @Property(name="serviceName") - protected String serviceName = "addService"; - - public double add(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Adding " + n1 + " and " + n2); - return n1 + n2; - } - - public String getServiceName(){ - return serviceName; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorClient.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorClient.java deleted file mode 100644 index 185f17a5ca..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorClient.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package calculator.warning; - -import org.apache.tuscany.sca.host.embedded.SCADomain; - -/** - * This client program shows how to create an SCA runtime, start it, - * and locate and invoke a SCA component - */ -public class CalculatorClient { - public static void main(String[] args) throws Exception { - - SCADomain scaDomain = SCADomain.newInstance("Calculator.composite"); - - CalculatorService calculatorService = - scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent"); - - // Calculate - System.out.println("3 + 2=" + calculatorService.add(3, 2)); - System.out.println("3 - 2=" + calculatorService.subtract(3, 2)); - System.out.println("3 * 2=" + calculatorService.multiply(3, 2)); - System.out.println("3 / 2=" + calculatorService.divide(3, 2)); - - scaDomain.close(); - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorService.java deleted file mode 100644 index f472d6aaf6..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorService.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - - -/** - * The Calculator service interface. - */ -public interface CalculatorService { - - double add(double n1, double n2); - - double subtract(double n1, double n2); - - double multiply(double n1, double n2); - - double divide(double n1, double n2); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorServiceImpl.java deleted file mode 100644 index 77aafe83de..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/CalculatorServiceImpl.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import org.osoa.sca.annotations.Reference; - - -/** - * An implementation of the Calculator service. - */ -public class CalculatorServiceImpl implements CalculatorService { - - private AddService addService; - private SubtractService subtractService; - private MultiplyService multiplyService; - private DivideService divideService; - - @Reference - public void setAddService(AddService addService) { - this.addService = addService; - } - - @Reference - public void setSubtractService(SubtractService subtractService) { - this.subtractService = subtractService; - } - - @Reference - public void setDivideService(DivideService divideService) { - this.divideService = divideService; - } - - @Reference - public void setMultiplyService(MultiplyService multiplyService) { - this.multiplyService = multiplyService; - } - - public double add(double n1, double n2) { - return addService.add(n1, n2); - } - - public double subtract(double n1, double n2) { - return subtractService.subtract(n1, n2); - } - - public double multiply(double n1, double n2) { - return multiplyService.multiply(n1, n2); - } - - public double divide(double n1, double n2) { - return divideService.divide(n1, n2); - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/DivideService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/DivideService.java deleted file mode 100644 index a93d23e61c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/DivideService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -/** - * The divide service interface - */ -public interface DivideService { - - double divide(double n1, double n2); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/DivideServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/DivideServiceImpl.java deleted file mode 100644 index 080594034b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/DivideServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the Divide service. - */ -public class DivideServiceImpl implements DivideService { - - public double divide(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Dividing " + n1 + " with " + n2); - return n1 / n2; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/MultiplyService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/MultiplyService.java deleted file mode 100644 index 20d48e93d5..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/MultiplyService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -/** - * The interface for the multiply service - */ -public interface MultiplyService { - - double multiply(double n1, double n2); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/MultiplyServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/MultiplyServiceImpl.java deleted file mode 100644 index 96f0b55fa2..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/MultiplyServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the Multiply service. - */ -public class MultiplyServiceImpl implements MultiplyService { - - public double multiply(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Multiplying " + n1 + " with " + n2); - return n1 * n2; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/PropertyService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/PropertyService.java deleted file mode 100644 index 4f1ccc96f8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/PropertyService.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -/** - * The Property service interface - */ -public interface PropertyService { - - String getFirstName(); - String getLastName(); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/PropertyServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/PropertyServiceImpl.java deleted file mode 100644 index 429daf5f2d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/PropertyServiceImpl.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import org.osoa.sca.annotations.Property; - -/** - * An implementation of the Property service - */ -public class PropertyServiceImpl implements PropertyService { - - @Property(name="firstName", required=false) - protected String firstName; - - @Property(name="lastName", required=true) - protected String lastName; - - public String getFirstName(){ - return firstName; - } - - public String getLastName(){ - return lastName; - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractService.java deleted file mode 100644 index 40e382dc74..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -/** - * The interface for the multiply service - */ -public interface SubtractService { - - double subtract(double n1, double n2); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractServiceImpl.java deleted file mode 100644 index 8cdbe0813d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the subtract service. - */ -public class SubtractServiceImpl implements SubtractService { - - public double subtract(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Subtracting " + n1 + " from " + n2); - return n1 - n2; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractServiceImplWithServiceName.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractServiceImplWithServiceName.java deleted file mode 100644 index d5e9fcf020..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/calculator/warning/SubtractServiceImplWithServiceName.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.util.logging.Level; -import java.util.logging.Logger; - -import org.osoa.sca.annotations.Service; - -/** - * An implementation of the subtract service. - */ -@Service(SubtractService.class) -public class SubtractServiceImplWithServiceName implements SubtractService { - - public double subtract(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Subtracting " + n1 + " from " + n2); - return n1 - n2; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/AddService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/AddService.java deleted file mode 100644 index 0db8ce4f5c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/AddService.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -/** - * The Add service interface - */ -public interface AddService { - - double add(double n1, double n2); - String getServiceName(); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/AddServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/AddServiceImpl.java deleted file mode 100644 index 83f2685d54..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/AddServiceImpl.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -import java.util.logging.Level; -import java.util.logging.Logger; - -import org.osoa.sca.annotations.Property; - -/** - * An implementation of the Add service - */ -public class AddServiceImpl implements AddService { - - @Property(name="serviceName") - protected String serviceName = "addService"; - - public double add(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Adding " + n1 + " and " + n2); - return n1 + n2; - } - - public String getServiceName(){ - return serviceName; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorClient.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorClient.java deleted file mode 100644 index e34ce3db26..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorClient.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package impl.java; - -import org.apache.tuscany.sca.host.embedded.SCADomain; - -/** - * This client program shows how to create an SCA runtime, start it, - * and locate and invoke a SCA component - */ -public class CalculatorClient { - public static void main(String[] args) throws Exception { - - SCADomain scaDomain = SCADomain.newInstance("Calculator.composite"); - - CalculatorService calculatorService = - scaDomain.getService(CalculatorService.class, "CalculatorServiceComponent"); - - // Calculate - System.out.println("3 + 2=" + calculatorService.add(3, 2)); - System.out.println("3 - 2=" + calculatorService.subtract(3, 2)); - System.out.println("3 * 2=" + calculatorService.multiply(3, 2)); - System.out.println("3 / 2=" + calculatorService.divide(3, 2)); - - scaDomain.close(); - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorService.java deleted file mode 100644 index 5d583fd604..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorService.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - - -/** - * The Calculator service interface. - */ -public interface CalculatorService { - - double add(double n1, double n2); - - double subtract(double n1, double n2); - - double multiply(double n1, double n2); - - double divide(double n1, double n2); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorServiceImpl.java deleted file mode 100644 index 0183e2a259..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/CalculatorServiceImpl.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -import org.osoa.sca.annotations.Reference; - - -/** - * An implementation of the Calculator service. - */ -public class CalculatorServiceImpl implements CalculatorService { - - private AddService addService; - private SubtractService subtractService; - private MultiplyService multiplyService; - private DivideService divideService; - - @Reference - public void setAddService(AddService addService) { - this.addService = addService; - } - - @Reference - public void setSubtractService(SubtractService subtractService) { - this.subtractService = subtractService; - } - - @Reference - public void setDivideService(DivideService divideService) { - this.divideService = divideService; - } - - @Reference - public void setMultiplyService(MultiplyService multiplyService) { - this.multiplyService = multiplyService; - } - - @Reference - private void add(int n1, int n2) { - - } - - public double add(double n1, double n2) { - return addService.add(n1, n2); - } - - public double subtract(double n1, double n2) { - return subtractService.subtract(n1, n2); - } - - public double multiply(double n1, double n2) { - return multiplyService.multiply(n1, n2); - } - - public double divide(double n1, double n2) { - return divideService.divide(n1, n2); - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/DivideService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/DivideService.java deleted file mode 100644 index 85ebadc9a0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/DivideService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -/** - * The divide service interface - */ -public interface DivideService { - - double divide(double n1, double n2); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/DivideServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/DivideServiceImpl.java deleted file mode 100644 index 863c298234..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/DivideServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the Divide service. - */ -public class DivideServiceImpl implements DivideService { - - public double divide(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Dividing " + n1 + " with " + n2); - return n1 / n2; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/MultiplyService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/MultiplyService.java deleted file mode 100644 index e1bf7fbddc..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/MultiplyService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -/** - * The interface for the multiply service - */ -public interface MultiplyService { - - double multiply(double n1, double n2); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/MultiplyServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/MultiplyServiceImpl.java deleted file mode 100644 index 6346ea3582..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/MultiplyServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the Multiply service. - */ -public class MultiplyServiceImpl implements MultiplyService { - - public double multiply(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Multiplying " + n1 + " with " + n2); - return n1 * n2; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/SubtractService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/SubtractService.java deleted file mode 100644 index 57759bb496..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/SubtractService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -/** - * The interface for the multiply service - */ -public interface SubtractService { - - double subtract(double n1, double n2); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/SubtractServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/SubtractServiceImpl.java deleted file mode 100644 index 16e3e6a23d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/java/SubtractServiceImpl.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -import java.util.logging.Level; -import java.util.logging.Logger; - -/** - * An implementation of the subtract service. - */ -public class SubtractServiceImpl implements SubtractService { - - public double subtract(double n1, double n2) { - Logger logger = Logger.getLogger("calculator"); - logger.log(Level.FINEST, "Subtracting " + n1 + " from " + n2); - return n1 - n2; - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestImpl.java deleted file mode 100644 index 6f9df2c034..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestImpl.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package impl.osgi; - -import java.util.Hashtable; - -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; - -/** - * - * Test class - Implementation of an OSGi service - * - */ -public class OSGiTestImpl implements OSGiTestInterface, BundleActivator { - - public String testService() { - - return OSGiTestImpl.class.getName(); - - } - - public void start(BundleContext bc) throws Exception { - - bc.registerService(OSGiTestInterface.class.getName(), this, new Hashtable()); - - } - - public void stop(BundleContext bc) throws Exception { - } - - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestInterface.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestInterface.java deleted file mode 100644 index bafff878cd..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestInterface.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package impl.osgi; - -/** - * - * Test class - Interface for an OSGi service - * - */ -public interface OSGiTestInterface { - - String testService() throws Exception ; - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestWithPropertyImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestWithPropertyImpl.java deleted file mode 100644 index e44d93e6be..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/osgi/OSGiTestWithPropertyImpl.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package impl.osgi; - -import java.util.Hashtable; - -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; -import org.osoa.sca.annotations.Property; - -/** - * - * Test class - Implementation of an OSGi service - * - */ -public class OSGiTestWithPropertyImpl implements OSGiTestInterface, BundleActivator { - - @Property - public double exchangeRate; - - private String currency; - - @Property - public void setCurrency(String currency) { - this.currency = currency; - } - - public String testService() throws Exception { - - if (exchangeRate != 2.0) - throw new Exception("Property exchangeRate not set correctly, expected 2.0, got " + exchangeRate); - if (!"USD".equals(currency)) - throw new Exception("Property currency not set correctly, expected USD, got " + currency); - return OSGiTestWithPropertyImpl.class.getName(); - - } - - public void start(BundleContext bc) throws Exception { - - bc.registerService(OSGiTestInterface.class.getName(), this, new Hashtable()); - - } - - public void stop(BundleContext bc) throws Exception { - } - - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/HelloWorld.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/HelloWorld.java deleted file mode 100644 index ef0b491617..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/HelloWorld.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package impl.spring; - -import org.osoa.sca.annotations.OneWay; -import org.osoa.sca.annotations.Remotable; - -/** - * Interface for the "hello world" service - predictably simple with a single operation - * "sayHello" - * - */ -@Remotable -public interface HelloWorld { - - @OneWay - String sayHello(String s); - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/HelloWorldProxy.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/HelloWorldProxy.java deleted file mode 100644 index 2e3458f0d3..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/HelloWorldProxy.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package impl.spring; - -import org.osoa.sca.annotations.Reference; - -/** - * A simple proxy Java class which implements the HelloWorld interface but which uses - * a reference "delegate" to actually provide the HelloWorld service - * - */ -public class HelloWorldProxy implements HelloWorld { - - // Here is the reference "delegate" - it implements the HelloWorld interface... - @Reference - public HelloWorld delegate; - - public String sayHello(String s) { - // Simply call the reference to satisfy the service request... - System.out.println("HelloWorldProxy - calling sayHello"); - return delegate.sayHello(s); - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/TestHelloWorldBean.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/TestHelloWorldBean.java deleted file mode 100644 index 87904f2a72..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/impl/spring/TestHelloWorldBean.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.spring; - -/** - * A simple test Spring bean which provides the HelloWorld service - * - */ - -public class TestHelloWorldBean implements HelloWorld { - - static String hello = "Hello "; - - // Classic "Hello xxx" response to any input message - public String sayHello(String message) { - System.out.println("TestHelloWorldBean - sayHello called"); - return (hello + message); - } - -} // end class TestHelloWorldBean diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/interfacejava/xml/CalculatorService.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/interfacejava/xml/CalculatorService.java deleted file mode 100644 index fa1a621f12..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/interfacejava/xml/CalculatorService.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package interfacejava.xml; - -import org.osoa.sca.annotations.OneWay; -/** - * The Calculator service interface. - */ -public interface CalculatorService { - - double add(double n1, double n2); - - double subtract(double n1, double n2); - - double multiply(double n1, double n2); - - @OneWay - double divide(double n1, double n2); -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/interfacejava/xml/CalculatorServiceImpl.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/interfacejava/xml/CalculatorServiceImpl.java deleted file mode 100644 index ebf7a79589..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/java/interfacejava/xml/CalculatorServiceImpl.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package interfacejava.xml; - -import org.osoa.sca.annotations.Reference; - -import calculator.warning.AddService; -import calculator.warning.DivideService; -import calculator.warning.MultiplyService; -import calculator.warning.SubtractService; - - -/** - * An implementation of the Calculator service. - */ -public class CalculatorServiceImpl implements CalculatorService { - - private AddService addService; - private SubtractService subtractService; - private MultiplyService multiplyService; - private DivideService divideService; - - @Reference - public void setAddService(AddService addService) { - this.addService = addService; - } - - @Reference - public void setSubtractService(SubtractService subtractService) { - this.subtractService = subtractService; - } - - @Reference - public void setDivideService(DivideService divideService) { - this.divideService = divideService; - } - - @Reference - public void setMultiplyService(MultiplyService multiplyService) { - this.multiplyService = multiplyService; - } - - public double add(double n1, double n2) { - return addService.add(n1, n2); - } - - public double subtract(double n1, double n2) { - return subtractService.subtract(n1, n2); - } - - public double multiply(double n1, double n2) { - return multiplyService.multiply(n1, n2); - } - - public double divide(double n1, double n2) { - return divideService.divide(n1, n2); - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ComponentReferenceTargetNotFound/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ComponentReferenceTargetNotFound/Calculator.composite deleted file mode 100644 index b2e7da05a2..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ComponentReferenceTargetNotFound/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateComponentName/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateComponentName/Calculator.composite deleted file mode 100644 index 4ba9f0724b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateComponentName/Calculator.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationPropertyName/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationPropertyName/Calculator.composite deleted file mode 100644 index b935dd194a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationPropertyName/Calculator.composite +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - addService - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationPropertyName/dummyImplementation.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationPropertyName/dummyImplementation.composite deleted file mode 100644 index 2b633f3139..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationPropertyName/dummyImplementation.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - addService - addService - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationReferenceName/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationReferenceName/Calculator.composite deleted file mode 100644 index 940e27a1e7..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationReferenceName/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationReferenceName/dummyImplementation.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationReferenceName/dummyImplementation.composite deleted file mode 100644 index 50d78cb2a6..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateImplementationReferenceName/dummyImplementation.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicatePropertyName/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicatePropertyName/Calculator.composite deleted file mode 100644 index bd788e47b8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicatePropertyName/Calculator.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - addService - addMyService - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateReferenceName/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateReferenceName/Calculator.composite deleted file mode 100644 index 7281878c0f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/DuplicateReferenceName/Calculator.composite +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/META-INF/sca/SpringHelloWorld-context.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/META-INF/sca/SpringHelloWorld-context.xml deleted file mode 100644 index 609ffed02d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/META-INF/sca/SpringHelloWorld-context.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/MultipleBindingsForService/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/MultipleBindingsForService/Calculator.composite deleted file mode 100644 index 08e18decc1..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/MultipleBindingsForService/Calculator.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoComponentImplementation/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoComponentImplementation/Calculator.composite deleted file mode 100644 index 36e71e398b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoComponentImplementation/Calculator.composite +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoCompositeNamespace/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoCompositeNamespace/Calculator.composite deleted file mode 100644 index 9a46e09363..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoCompositeNamespace/Calculator.composite +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoMatchingBinding/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoMatchingBinding/Calculator.composite deleted file mode 100644 index 59017f0c09..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/NoMatchingBinding/Calculator.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PromotedReferenceNotFound/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PromotedReferenceNotFound/Calculator.composite deleted file mode 100644 index 462a95dd02..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PromotedReferenceNotFound/Calculator.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PromotedServiceNotFound/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PromotedServiceNotFound/Calculator.composite deleted file mode 100644 index 4b6c44bd58..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PromotedServiceNotFound/Calculator.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/Calculator.composite deleted file mode 100644 index a397e3384c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/Calculator.composite +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Simon - Laws - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/CalculatorNullMustSupply.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/CalculatorNullMustSupply.composite deleted file mode 100644 index 08fab865fa..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/CalculatorNullMustSupply.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/CalculatorOverrideManyAttribute.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/CalculatorOverrideManyAttribute.composite deleted file mode 100644 index 3a5f59b17c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyAttribute/CalculatorOverrideManyAttribute.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Laws - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyNotFound/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyNotFound/Calculator.composite deleted file mode 100644 index 8221e41430..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/PropertyNotFound/Calculator.composite +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - addService - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleComponentInterface/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleComponentInterface/Calculator.composite deleted file mode 100644 index 9c5ae7027f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleComponentInterface/Calculator.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleInterface/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleInterface/Calculator.composite deleted file mode 100644 index 3c85ed32e2..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleInterface/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleMultiplicity/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleMultiplicity/Calculator.composite deleted file mode 100644 index 2d1a1e01f0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceIncompatibleMultiplicity/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceNotFound/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceNotFound/Calculator.composite deleted file mode 100644 index efb457ac9e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceNotFound/Calculator.composite +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceWithoutTargets/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceWithoutTargets/Calculator.composite deleted file mode 100644 index a5beaf4ec9..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ReferenceWithoutTargets/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ServiceNotFoundForComponentService/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ServiceNotFoundForComponentService/Calculator.composite deleted file mode 100644 index 06c3eeeaca..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/ServiceNotFoundForComponentService/Calculator.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/UnresolvedComponentImplementation/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/UnresolvedComponentImplementation/Calculator.composite deleted file mode 100644 index 821ce570c8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/UnresolvedComponentImplementation/Calculator.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/XsdValidation/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/XsdValidation/Calculator.composite deleted file mode 100644 index 63ccaa9957..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/XsdValidation/Calculator.composite +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/ContributionReadException/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/ContributionReadException/Calculator.composite deleted file mode 100644 index da565081f3..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/ContributionReadException/Calculator.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/PolicyImplValidationException/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/PolicyImplValidationException/Calculator.composite deleted file mode 100644 index 6153d40c3d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/PolicyImplValidationException/Calculator.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/PolicyServiceValidationException/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/PolicyServiceValidationException/Calculator.composite deleted file mode 100644 index a3eb60bf58..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/PolicyServiceValidationException/Calculator.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedBindingElement/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedBindingElement/Calculator.composite deleted file mode 100644 index 6233d47d8d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedBindingElement/Calculator.composite +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedImplementationElement/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedImplementationElement/Calculator.composite deleted file mode 100644 index 6a9af9e070..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedImplementationElement/Calculator.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedInterfaceElement/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedInterfaceElement/Calculator.composite deleted file mode 100644 index 49b26c78f8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/assemblyxml/UnexpectedInterfaceElement/Calculator.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/InvalidWsdlElementAttr/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/InvalidWsdlElementAttr/Calculator.composite deleted file mode 100644 index c34a160b61..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/InvalidWsdlElementAttr/Calculator.composite +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworld.wsdl deleted file mode 100644 index ce3689afff..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworld.wsdl +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworldwsjms.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworldwsjms.composite deleted file mode 100644 index 61a9dae367..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MissingImportedXSD/helloworldwsjms.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MustUseWsdlBinding/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MustUseWsdlBinding/Calculator.composite deleted file mode 100644 index 293c4d725d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/MustUseWsdlBinding/Calculator.composite +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - http://localhost:8085/Calculator - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworld.wsdl deleted file mode 100644 index 013a55b61e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworld.wsdl +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworldwsjms.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworldwsjms.composite deleted file mode 100644 index b7ff1e304f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworldwsjms.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworld.wsdl deleted file mode 100644 index 218dbc47c4..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworld.wsdl +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworldwsclient.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworldwsclient.composite deleted file mode 100644 index 5975c27663..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworldwsclient.composite +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworld.wsdl deleted file mode 100644 index 013a55b61e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworld.wsdl +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworldwsjms.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworldwsjms.composite deleted file mode 100644 index 8cda0b007e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworldwsjms.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingejb/UnknownEJBSessionType/account.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingejb/UnknownEJBSessionType/account.composite deleted file mode 100644 index 781319d619..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingejb/UnknownEJBSessionType/account.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingejb/UnknownEJBVersion/account.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingejb/UnknownEJBVersion/account.composite deleted file mode 100644 index 8a0dfac98b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingejb/UnknownEJBVersion/account.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessActivationSpec/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessActivationSpec/service.composite deleted file mode 100644 index fcfe408582..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessActivationSpec/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessDestinationType/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessDestinationType/service.composite deleted file mode 100644 index ede3b3fd40..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessDestinationType/service.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessHeaders/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessHeaders/service.composite deleted file mode 100644 index a8c89a0bf5..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessHeaders/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResourceAdapter/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResourceAdapter/service.composite deleted file mode 100644 index b4e56d1789..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResourceAdapter/service.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseActivationSpec/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseActivationSpec/service.composite deleted file mode 100644 index e68eb75d64..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseActivationSpec/service.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseConnectionFactory/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseConnectionFactory/service.composite deleted file mode 100644 index 00c7a3f86b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseConnectionFactory/service.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseDestinationType/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseDestinationType/service.composite deleted file mode 100644 index d656d47cfd..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/DoesntProcessResponseDestinationType/service.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidCorrelationScheme/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidCorrelationScheme/service.composite deleted file mode 100644 index ad1daacfcf..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidCorrelationScheme/service.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite deleted file mode 100644 index 145aea9fbc..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite deleted file mode 100644 index c52da84a0c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidJMSPriority/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidResponseDestinationType/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidResponseDestinationType/service.composite deleted file mode 100644 index fb35f5d1b8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/InvalidResponseDestinationType/service.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingActivationSpecName/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingActivationSpecName/service.composite deleted file mode 100644 index fcdf25455c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingActivationSpecName/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingConnectionFactoryName/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingConnectionFactoryName/service.composite deleted file mode 100644 index 14f1314a1b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingConnectionFactoryName/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingResponseActivationSpec/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingResponseActivationSpec/service.composite deleted file mode 100644 index 1a3cb21ac6..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingResponseActivationSpec/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingResponseConnectionFactory/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingResponseConnectionFactory/service.composite deleted file mode 100644 index 80b8f9d938..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MissingResponseConnectionFactory/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MustStartWithSchema/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MustStartWithSchema/service.composite deleted file mode 100644 index 8fd1e2f554..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/MustStartWithSchema/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/UnexpectedElement/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/UnexpectedElement/service.composite deleted file mode 100644 index 3077c328b6..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/UnexpectedElement/service.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/UnknownTokenInURI/service.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/UnknownTokenInURI/service.composite deleted file mode 100644 index e22f30152e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/bindingjms/UnknownTokenInURI/service.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/java/AttributePackageMissing/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/java/AttributePackageMissing/Calculator.composite deleted file mode 100644 index 6ef7558d95..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/java/AttributePackageMissing/Calculator.composite +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/namespace/AttributeNameSpaceMissing/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/namespace/AttributeNameSpaceMissing/Calculator.composite deleted file mode 100644 index 77a2715373..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/namespace/AttributeNameSpaceMissing/Calculator.composite +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite deleted file mode 100644 index 6e5fcf1286..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml deleted file mode 100644 index d3ce4d91c1..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/resource/AttributeURIMissing/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/Calculator.composite deleted file mode 100644 index 70f91d1a7d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/Calculator.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/sca-contribution.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/sca-contribution.xml deleted file mode 100644 index 7f5eb546e0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/AttributeCompositeMissing/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/Calculator.composite deleted file mode 100644 index 70f91d1a7d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/Calculator.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/sca-contribution.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/sca-contribution.xml deleted file mode 100644 index c1ff61f07c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/contribution/xml/MultipleCompositeErrors/sca-contribution.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/AttributeUnrecognizedNamespace/helloworld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/AttributeUnrecognizedNamespace/helloworld.composite deleted file mode 100644 index 0dfe52985a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/AttributeUnrecognizedNamespace/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/AttributeWithoutNamespace/helloworld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/AttributeWithoutNamespace/helloworld.composite deleted file mode 100644 index d3f249720d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/AttributeWithoutNamespace/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.bpel b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.bpel deleted file mode 100644 index a8eb389704..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.composite deleted file mode 100644 index 575927a5de..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.wsdl deleted file mode 100644 index 46cf381577..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.bpel b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.bpel deleted file mode 100644 index a8eb389704..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.composite deleted file mode 100644 index b4623b5c2d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.bpel b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.bpel deleted file mode 100644 index 973d1f618a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.composite deleted file mode 100644 index b4623b5c2d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.wsdl deleted file mode 100644 index 46cf381577..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.bpel b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.bpel deleted file mode 100644 index 5d2aeddc3d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.bpel +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.composite deleted file mode 100644 index b4623b5c2d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.wsdl deleted file mode 100644 index 46cf381577..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.bpel b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.bpel deleted file mode 100644 index 68df3156a8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.composite deleted file mode 100644 index b4623b5c2d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.wsdl deleted file mode 100644 index 46cf381577..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.bpel b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.bpel deleted file mode 100644 index a8eb389704..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.composite deleted file mode 100644 index b4623b5c2d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.wsdl deleted file mode 100644 index 695fd60887..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.wsdl +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/ejb/EJBLinkAttributeMissing/ejb.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/ejb/EJBLinkAttributeMissing/ejb.composite deleted file mode 100644 index 94ee650207..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/ejb/EJBLinkAttributeMissing/ejb.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/java/ClassNotFoundException/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/java/ClassNotFoundException/Calculator.composite deleted file mode 100644 index f3cf93ddaa..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/java/ClassNotFoundException/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/java/ContributionResolveException/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/java/ContributionResolveException/Calculator.composite deleted file mode 100644 index f9016219a5..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/java/ContributionResolveException/Calculator.composite +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/OSGiTestService.componentType b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/OSGiTestService.componentType deleted file mode 100644 index 634c13b3cc..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/OSGiTestService.componentType +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - GBP - 1.0 - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/osgitest.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/osgitest.composite deleted file mode 100644 index 0d1861f2f5..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/osgitest.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - USD - 2.0 - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/MissingComponentTypeFile/osgitest.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/MissingComponentTypeFile/osgitest.composite deleted file mode 100644 index 9b3adc4828..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/MissingComponentTypeFile/osgitest.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - USD - 2.0 - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.componentType b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.componentType deleted file mode 100644 index 634c13b3cc..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.componentType +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - GBP - 1.0 - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/osgitest.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/osgitest.composite deleted file mode 100644 index 881c24854b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/osgi/PropertyShouldSpecifySR/osgitest.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - USD - 2.0 - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/resource/CouldNotResolveLocation/resource.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/resource/CouldNotResolveLocation/resource.composite deleted file mode 100644 index 4e680f1200..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/resource/CouldNotResolveLocation/resource.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/resource/LocationAttributeMissing/resource.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/resource/LocationAttributeMissing/resource.composite deleted file mode 100644 index e01643ed8f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/resource/LocationAttributeMissing/resource.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/ContributionResolveException/SpringHelloWorld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/ContributionResolveException/SpringHelloWorld.composite deleted file mode 100644 index d776882ed0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/ContributionResolveException/SpringHelloWorld.composite +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/LocationAttributeMissing/SpringHelloWorld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/LocationAttributeMissing/SpringHelloWorld.composite deleted file mode 100644 index 0d1ffc97e4..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/LocationAttributeMissing/SpringHelloWorld.composite +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld-context.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld-context.xml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld.composite deleted file mode 100644 index 99c529d77f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/TestHelloWorldBean.componentType b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/TestHelloWorldBean.componentType deleted file mode 100644 index c75f209b6d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/spring/UnableToResolveComponentType/TestHelloWorldBean.componentType +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/widget/CouldNotResolveLocation/widget.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/widget/CouldNotResolveLocation/widget.composite deleted file mode 100644 index a5874707da..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/widget/CouldNotResolveLocation/widget.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/widget/LocationAttributeMissing/widget.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/widget/LocationAttributeMissing/widget.composite deleted file mode 100644 index 393b9fe674..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/widget/LocationAttributeMissing/widget.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/xquery/CouldNotLocateFile/HelloWorld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/xquery/CouldNotLocateFile/HelloWorld.composite deleted file mode 100644 index 1dca444938..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/xquery/CouldNotLocateFile/HelloWorld.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/xquery/LocationAttributeMissing/HelloWorld.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/xquery/LocationAttributeMissing/HelloWorld.composite deleted file mode 100644 index 9a60183c5c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/impl/xquery/LocationAttributeMissing/HelloWorld.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/Calculator.composite deleted file mode 100644 index 70f91d1a7d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/Calculator.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/CalculatorServiceImpl.componentType b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/CalculatorServiceImpl.componentType deleted file mode 100644 index bc7bf3f250..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ClassNotFoundException/CalculatorServiceImpl.componentType +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/Calculator.composite deleted file mode 100644 index a1a699fc75..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/Calculator.composite +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/CalculatorServiceImpl.componentType b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/CalculatorServiceImpl.componentType deleted file mode 100644 index 7446e4f06a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacejava/xml/ContributionResolveException/CalculatorServiceImpl.componentType +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/Calculator.composite deleted file mode 100644 index 0bbb10706e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/Calculator.composite +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-interface.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-interface.wsdl deleted file mode 100644 index 9d9376ad6c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-interface.wsdl +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-service.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-service.wsdl deleted file mode 100644 index 3885357625..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/helloworld-service.wsdl +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworld.wsdl b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworld.wsdl deleted file mode 100644 index 013a55b61e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworld.wsdl +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworldwsjms.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworldwsjms.composite deleted file mode 100644 index d9252ba54f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworldwsjms.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/ClassNotFoundException/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/ClassNotFoundException/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/ClassNotFoundException/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/ClassNotFoundException/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/ClassNotFoundException/definitions.xml deleted file mode 100644 index 53d1a581f0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/ClassNotFoundException/definitions.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/definitions.xml deleted file mode 100644 index ac45d95ce8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/security/RequiredAttributeRolesMissing/definitions.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/definitions.xml deleted file mode 100644 index 5cf6963a96..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/definitions.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - Need to figure out some description for this - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/definitions.xml deleted file mode 100644 index d31c705fb5..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/definitions.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - - - - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - All messages to and from this implementation must be logged - - - - - - Need to figure out some description for this - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/definitions.xml deleted file mode 100644 index d214a7f40a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/IntentNotSpecified/definitions.xml +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - ... - - - - - - - - - Protect messages from unauthorized reading or modification - - - - - - Protect messages from unauthorized reading or modification - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/definitions.xml deleted file mode 100644 index ede1786942..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/MayProvideIntentNotFound/definitions.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - - - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - All messages to and from this implementation must be logged - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/definitions.xml deleted file mode 100644 index fcb43c949b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/RequiredAttributeMissing/definitions.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - All messages to and from this implementation must be logged - - - - - - Need to figure out some description for this - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/definitions.xml deleted file mode 100644 index 8346dcc01a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnableToMapPolicies/definitions.xml +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - - - - - - FINER - - - - - - - Test Intent - - - - - - Protect messages from unauthorized reading or modification - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ... - - - - ... - - - - - - - - - - - sp:X509v3 - - - - - - - - - - - - - - - - - - Protect messages from unauthorized reading or modification - - - - - - Protect messages from unauthorized reading or modification - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - All messages to and from this implementation must be logged - - - - - - Need to figure out some description for this - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/Calculator.composite b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/Calculator.composite deleted file mode 100644 index 48c3c5ffc0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/Calculator.composite +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/definitions.xml b/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/definitions.xml deleted file mode 100644 index 60f4de5cd3..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/definitions.xml +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - Communitcation thro this binding must prevent - unauthorized users from reading the messages. - - - - - - Communitcation thro this binding must prevent - unauthorized modification of the messages. - - - - - - Communitcation thro this binding required - Authentication. - - - - - - All messages to and from this implementation must be logged - - - - - - Need to figure out some description for this - - - - \ No newline at end of file diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/ContributionReadException.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/ContributionReadException.java deleted file mode 100644 index 0b3a828a41..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/ContributionReadException.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package assembly.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class ContributionReadException extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/assemblyxml/ContributionReadException/Calculator.composite", - "TestContribution", "src/main/resources/assemblyxml/ContributionReadException/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ContributionReadException", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/PolicyImplValidationException.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/PolicyImplValidationException.java deleted file mode 100644 index 14e47f464a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/PolicyImplValidationException.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package assembly.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class PolicyImplValidationException extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/assemblyxml/PolicyImplValidationException/Calculator.composite", - "TestContribution", "src/main/resources/assemblyxml/PolicyImplValidationException/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PolicyImplValidationException", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/PolicyServiceValidationException.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/PolicyServiceValidationException.java deleted file mode 100644 index c4cdc2358d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/PolicyServiceValidationException.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package assembly.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class PolicyServiceValidationException extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/assemblyxml/PolicyServiceValidationException/Calculator.composite", - "TestContribution", "src/main/resources/assemblyxml/PolicyServiceValidationException/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PolicyServiceValidationException", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedBindingElement.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedBindingElement.java deleted file mode 100644 index 18d9820d10..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedBindingElement.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package assembly.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnexpectedBindingElement extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/assemblyxml/UnexpectedBindingElement/Calculator.composite", - "TestContribution", "src/main/resources/assemblyxml/UnexpectedBindingElement/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnexpectedBindingElement", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedImplementationElement.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedImplementationElement.java deleted file mode 100644 index bd211aad97..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedImplementationElement.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package assembly.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnexpectedImplementationElement extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/assemblyxml/UnexpectedImplementationElement/Calculator.composite", - "TestContribution", "src/main/resources/assemblyxml/UnexpectedImplementationElement/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnexpectedImplementationElement", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedInterfaceElement.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedInterfaceElement.java deleted file mode 100644 index 61956a8712..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/assembly/xml/UnexpectedInterfaceElement.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package assembly.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; -/** - * This shows how to test the Calculator service component. - */ -public class UnexpectedInterfaceElement extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/assemblyxml/UnexpectedInterfaceElement/Calculator.composite", - "TestContribution", "src/main/resources/assemblyxml/UnexpectedInterfaceElement/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnexpectedInterfaceElement", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/ejb/UnknownEJBSessionTypeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/ejb/UnknownEJBSessionTypeTestCase.java deleted file mode 100644 index 773f347170..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/ejb/UnknownEJBSessionTypeTestCase.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.ejb; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnknownEJBSessionTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception { - System.setProperty("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory"); - System.setProperty("java.naming.provider.url", "ejbd://localhost:8085"); - System.setProperty("managed", "false"); - - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingejb/UnknownEJBSessionType/account.composite", - "TestContribution", - "src/main/resources/bindingejb/UnknownEJBSessionType/"); - } catch (Exception ex) { - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - System.clearProperty("java.naming.factory.initial"); - System.clearProperty("java.naming.provider.url"); - System.clearProperty("managed"); - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnknownEJBSessionType", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/ejb/UnknownEJBVersionTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/ejb/UnknownEJBVersionTestCase.java deleted file mode 100644 index 9ebfa0637b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/ejb/UnknownEJBVersionTestCase.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.ejb; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnknownEJBVersionTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception { - System.setProperty("java.naming.factory.initial", "org.apache.openejb.client.RemoteInitialContextFactory"); - System.setProperty("java.naming.provider.url", "ejbd://localhost:8085"); - System.setProperty("managed", "false"); - - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingejb/UnknownEJBVersion/account.composite", - "TestContribution", "src/main/resources/bindingejb/UnknownEJBVersion/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - System.clearProperty("java.naming.factory.initial"); - System.clearProperty("java.naming.provider.url"); - System.clearProperty("managed"); - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnknownEJBVersion", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java deleted file mode 100644 index d32bb33d93..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessDestinationTypeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class DoesntProcessDestinationTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessDestinationType/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessDestinationType/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("DoesntProcessDestinationType", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java deleted file mode 100644 index 2ba2e6cd12..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessHeadersTestCase.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.junit.Ignore; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class DoesntProcessHeadersTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessHeaders/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessHeaders/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - @Ignore("TUSCANY-2532") - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); -// assertEquals("DoesntProcessHeaders", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java deleted file mode 100644 index 011d9e427d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/DoesntProcessResponseDestinationTypeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class DoesntProcessResponseDestinationTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/DoesntProcessResponseDestinationType/service.composite", - "TestContribution", "src/main/resources/bindingjms/DoesntProcessResponseDestinationType/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("DoesntProcessResponseDestinationType", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java deleted file mode 100644 index f0b798c2e4..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidCorrelationSchemeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class InvalidCorrelationSchemeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/InvalidCorrelationScheme/service.composite", - "TestContribution", "src/main/resources/bindingjms/InvalidCorrelationScheme/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("InvalidCorrelationScheme", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java deleted file mode 100644 index a114501098..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidJMSDeliveryModeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class InvalidJMSDeliveryModeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/InvalidJMSDeliveryMode/service.composite", - "TestContribution", "src/main/resources/bindingjms/InvalidJMSDeliveryMode/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("InvalidJMSDeliveryMode", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java deleted file mode 100644 index d31e02054a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidJMSPriorityTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class InvalidJMSPriorityTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/InvalidJMSPriority/service.composite", - "TestContribution", "src/main/resources/bindingjms/InvalidJMSPriority/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("InvalidJMSPriority", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java deleted file mode 100644 index 1727217fe0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/InvalidResponseDestinationTypeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class InvalidResponseDestinationTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/InvalidResponseDestinationType/service.composite", - "TestContribution", "src/main/resources/bindingjms/InvalidResponseDestinationType/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("InvalidResponseDestinationType", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java deleted file mode 100644 index 33bf2882e5..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingActivationSpecNameTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MissingActivationSpecNameTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MissingActivationSpecName/service.composite", - "TestContribution", "src/main/resources/bindingjms/MissingActivationSpecName/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getProblems().get(1); - - assertNotNull(problem); - assertEquals("MissingActivationSpecName", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java deleted file mode 100644 index fcb4345293..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingConnectionFactoryNameTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MissingConnectionFactoryNameTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MissingConnectionFactoryName/service.composite", - "TestContribution", "src/main/resources/bindingjms/MissingConnectionFactoryName/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getProblems().get(1); - - assertNotNull(problem); - assertEquals("MissingConnectionFactoryName", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java deleted file mode 100644 index 04d1ba1055..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingResponseActivationSpecTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MissingResponseActivationSpecTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MissingResponseActivationSpec/service.composite", - "TestContribution", "src/main/resources/bindingjms/MissingResponseActivationSpec/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getProblems().get(1); - - assertNotNull(problem); - assertEquals("MissingResponseActivationSpec", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java deleted file mode 100644 index 8725a714e8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MissingResponseConnectionFactoryTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MissingResponseConnectionFactoryTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MissingResponseConnectionFactory/service.composite", - "TestContribution", "src/main/resources/bindingjms/MissingResponseConnectionFactory/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getProblems().get(1); - - assertNotNull(problem); - assertEquals("MissingResponseConnectionFactory", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java deleted file mode 100644 index b62cd22d6f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/MustStartWithSchemaTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MustStartWithSchemaTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/MustStartWithSchema/service.composite", - "TestContribution", "src/main/resources/bindingjms/MustStartWithSchema/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("MustStartWithSchema", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java deleted file mode 100644 index 90a82ebe1f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/UnexpectedElementTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnexpectedElementTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/UnexpectedElement/service.composite", - "TestContribution", "src/main/resources/bindingjms/UnexpectedElement/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnexpectedElement", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java deleted file mode 100644 index df86fe1564..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/jms/UnknownTokenInURITestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.jms; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnknownTokenInURITestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/bindingjms/UnknownTokenInURI/service.composite", - "TestContribution", "src/main/resources/bindingjms/UnknownTokenInURI/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnknownTokenInURI", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/InvalidWsdlElementAttrTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/InvalidWsdlElementAttrTestCase.java deleted file mode 100644 index 00e6873361..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/InvalidWsdlElementAttrTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.wsxml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class InvalidWsdlElementAttrTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/binding/wsxml/InvalidWsdlElementAttr/Calculator.composite", - "TestContribution", "src/main/resources/binding/wsxml/InvalidWsdlElementAttr/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("InvalidWsdlElementAttr", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/MissingImportedXSDTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/MissingImportedXSDTestCase.java deleted file mode 100644 index 0ceae597fb..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/MissingImportedXSDTestCase.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.wsxml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MissingImportedXSDTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/binding/wsxml/MissingImportedXSD/helloworldwsjms.composite", - "TestContribution", "src/main/resources/binding/wsxml/MissingImportedXSD/"); - } catch (Exception ex) { - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - - Problem problem = ((DefaultMonitorImpl)monitor).getProblems().get(0); - assertNotNull(problem); - assertEquals("ContributionResolveException", problem.getMessageId()); - - problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - assertNotNull(problem); - assertEquals("InvalidInterfaceException", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/MustUseWsdlBindingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/MustUseWsdlBindingTestCase.java deleted file mode 100644 index 6b2bf20329..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/MustUseWsdlBindingTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.wsxml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MustUseWsdlBindingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/binding/wsxml/MustUseWsdlBinding/Calculator.composite", - "TestContribution", "src/main/resources/binding/wsxml/MustUseWsdlBinding/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("MustUseWsdlBinding", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlBindingDoesNotMatchTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlBindingDoesNotMatchTestCase.java deleted file mode 100644 index 8c21abb896..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlBindingDoesNotMatchTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.wsxml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class WsdlBindingDoesNotMatchTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/helloworldwsjms.composite", - "TestContribution", "src/main/resources/binding/wsxml/WsdlBindingDoesNotMatch/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("WsdlBindingDoesNotMatch", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlPortTypeDoesNotMatchTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlPortTypeDoesNotMatchTestCase.java deleted file mode 100644 index 83b4722b60..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlPortTypeDoesNotMatchTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.wsxml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class WsdlPortTypeDoesNotMatchTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/helloworldwsclient.composite", - "TestContribution", "src/main/resources/binding/wsxml/WsdlPortTypeDoesNotMatch/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("WsdlPortTypeDoesNotMatch", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlServiceDoesNotMatchTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlServiceDoesNotMatchTestCase.java deleted file mode 100644 index 8f7786f08a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/binding/wsxml/WsdlServiceDoesNotMatchTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package binding.wsxml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class WsdlServiceDoesNotMatchTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/helloworldwsjms.composite", - "TestContribution", "src/main/resources/binding/wsxml/WsdlServiceDoesNotMatch/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("WsdlServiceDoesNotMatch", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ComponentReferenceTargetNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ComponentReferenceTargetNotFoundTestCase.java deleted file mode 100644 index 6426e8599b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ComponentReferenceTargetNotFoundTestCase.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class ComponentReferenceTargetNotFoundTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/ComponentReferenceTargetNotFound/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/ComponentReferenceTargetNotFound").toURL().toString())); - - try { - node.start(); - } catch (Exception ex){ - // do nothing - the SCA binding throws and exception here - // because the interface for the reference is not remotable - } - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ComponentReferenceTargetNotFound", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateComponentNameTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateComponentNameTestCase.java deleted file mode 100644 index 5e41d1d1ed..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateComponentNameTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class DuplicateComponentNameTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/DuplicateComponentName/Calculator.composite", - "TestContribution", "src/main/resources/DuplicateComponentName/"); - customDomain.buildContribution(); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("DuplicateComponentName", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateImplementationPropertyNameTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateImplementationPropertyNameTestCase.java deleted file mode 100644 index 173d1e4a20..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateImplementationPropertyNameTestCase.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class DuplicateImplementationPropertyNameTestCase extends TestCase { - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/DuplicateImplementationPropertyName/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/DuplicateImplementationPropertyName").toURL().toString())); - } - - @Override - protected void tearDown() throws Exception { - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("DuplicateImplementationPropertyName", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateImplementationReferenceNameTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateImplementationReferenceNameTestCase.java deleted file mode 100644 index e016a1465b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateImplementationReferenceNameTestCase.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class DuplicateImplementationReferenceNameTestCase extends TestCase { - - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/DuplicateImplementationReferenceName/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/DuplicateImplementationReferenceName").toURL().toString())); - } - - @Override - protected void tearDown() throws Exception { - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("DuplicateImplementationReferenceName", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicatePropertyNameTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicatePropertyNameTestCase.java deleted file mode 100644 index 2e4a3daeca..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicatePropertyNameTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class DuplicatePropertyNameTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/DuplicatePropertyName/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/DuplicatePropertyName").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("DuplicateComponentPropertyName", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateReferenceNameTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateReferenceNameTestCase.java deleted file mode 100644 index 61c30913cf..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/DuplicateReferenceNameTestCase.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; -import org.osoa.sca.ServiceRuntimeException; - -/** - * This shows how to test the Calculator service component. - */ -public class DuplicateReferenceNameTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - private boolean duplicateReferenceException = false; - - @Override - protected void setUp() throws Exception { - try { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/DuplicateReferenceName/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/DuplicateReferenceName").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } catch (ServiceRuntimeException ex) { - if (ex.getMessage().equals("org.apache.tuscany.sca.monitor.MonitorRuntimeException: Duplicate component reference name: Component = CalculatorServiceComponent Reference = addService")){ - duplicateReferenceException = true; - } - } - } - - @Override - protected void tearDown() throws Exception { - if (node != null){ - node.stop(); - } - } - - public void testCalculator() throws Exception { - assertTrue(duplicateReferenceException); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/MultipleBindingsForServiceTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/MultipleBindingsForServiceTestCase.java deleted file mode 100644 index 0bbb3a5074..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/MultipleBindingsForServiceTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class MultipleBindingsForServiceTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/MultipleBindingsForService/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/MultipleBindingsForService").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("MultipleBindingsForService", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoComponentImplementationTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoComponentImplementationTestCase.java deleted file mode 100644 index d8a19eb5c7..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoComponentImplementationTestCase.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class NoComponentImplementationTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/NoComponentImplementation/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/NoComponentImplementation").toURL().toString())); - } - - @Override - protected void tearDown() throws Exception { - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("NoComponentImplementation", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoCompositeNamespaceTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoCompositeNamespaceTestCase.java deleted file mode 100644 index 313c8fdbe0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoCompositeNamespaceTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class NoCompositeNamespaceTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/NoCompositeNamespace/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/NoCompositeNamespace").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("NoCompositeNamespace", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoMatchingBindingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoMatchingBindingTestCase.java deleted file mode 100644 index cf86d01f3d..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/NoMatchingBindingTestCase.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class NoMatchingBindingTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = - nodeFactory.createSCANode("Calculator.composite", new SCAContribution("TestContribution", new File("src/main/resources/NoMatchingBinding") - .toURL().toString())); - - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("NoMatchingBinding", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PromotedReferenceNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PromotedReferenceNotFoundTestCase.java deleted file mode 100644 index 3578567b2a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PromotedReferenceNotFoundTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class PromotedReferenceNotFoundTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/PromotedReferenceNotFound/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/PromotedReferenceNotFound").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PromotedReferenceNotFound", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PromotedServiceNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PromotedServiceNotFoundTestCase.java deleted file mode 100644 index 4688f836e0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PromotedServiceNotFoundTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class PromotedServiceNotFoundTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/PromotedServiceNotFound/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/PromotedServiceNotFound").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PromotedServiceNotFound", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyAttributeMustSupplyNullTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyAttributeMustSupplyNullTestCase.java deleted file mode 100644 index b0883a5227..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyAttributeMustSupplyNullTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class PropertyAttributeMustSupplyNullTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/PropertyAttribute/CalculatorNullMustSupply.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/PropertyAttribute").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PropertyMustSupplyNull", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyAttributeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyAttributeTestCase.java deleted file mode 100644 index 1d6f905c20..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyAttributeTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class PropertyAttributeTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/PropertyAttribute/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/PropertyAttribute").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PropertyMustSupplyIncompatible", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyNotFoundTestCase.java deleted file mode 100644 index 4d91dfb79c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyNotFoundTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class PropertyNotFoundTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/PropertyNotFound/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/PropertyNotFound").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PropertyNotFound", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyOverrideManyAttributeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyOverrideManyAttributeTestCase.java deleted file mode 100644 index 73a83dd074..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/PropertyOverrideManyAttributeTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class PropertyOverrideManyAttributeTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/PropertyAttribute/CalculatorOverrideManyAttribute.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/PropertyAttribute").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PropertyOverrideManyAttribute", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleComponentInterfaceTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleComponentInterfaceTestCase.java deleted file mode 100644 index 993ccde9fd..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleComponentInterfaceTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class ReferenceIncompatibleComponentInterfaceTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/ReferenceIncompatibleComponentInterface/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/ReferenceIncompatibleComponentInterface").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ReferenceIncompatibleComponentInterface", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleInterfaceTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleInterfaceTestCase.java deleted file mode 100644 index 6dc8a321fc..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleInterfaceTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class ReferenceIncompatibleInterfaceTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/ReferenceIncompatibleInterface/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/ReferenceIncompatibleInterface").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ReferenceIncompatibleInterface", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleMultiplicityTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleMultiplicityTestCase.java deleted file mode 100644 index 66b233b87a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceIncompatibleMultiplicityTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class ReferenceIncompatibleMultiplicityTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/ReferenceIncompatibleMultiplicity/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/ReferenceIncompatibleMultiplicity").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ReferenceIncompatibleMultiplicity", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceNotFoundTestCase.java deleted file mode 100644 index 2e676282ae..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceNotFoundTestCase.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class ReferenceNotFoundTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/ReferenceNotFound/Calculator.composite", - "TestContribution", - "src/main/resources/ReferenceNotFound/"); - customDomain.buildContribution(); - } catch (Exception ex){ - throw ex; - } - - - /* - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/ReferenceNotFound/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/ReferenceNotFound").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - */ - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() throws Exception { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ReferenceNotFound", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceWithoutTargetsTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceWithoutTargetsTestCase.java deleted file mode 100644 index ef67ece5e9..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ReferenceWithoutTargetsTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class ReferenceWithoutTargetsTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/ReferenceWithoutTargets/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/ReferenceWithoutTargets").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ReferenceWithoutTargets", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ServiceNotFoundForComponentServiceTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ServiceNotFoundForComponentServiceTestCase.java deleted file mode 100644 index b9bbd3fdd3..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/ServiceNotFoundForComponentServiceTestCase.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class ServiceNotFoundForComponentServiceTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/ServiceNotFoundForComponentService/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/ServiceNotFoundForComponentService").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } - - @Override - protected void tearDown() throws Exception { - node.stop(); - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ServiceNotFoundForComponentService", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/UnresolvedComponentImplementationTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/UnresolvedComponentImplementationTestCase.java deleted file mode 100644 index 040adc09c7..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/UnresolvedComponentImplementationTestCase.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.apache.tuscany.sca.node.impl.NodeImpl; - -/** - * This shows how to test the Calculator service component. - */ -public class UnresolvedComponentImplementationTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - node = nodeFactory.createSCANode(new File("src/main/resources/UnresolvedComponentImplementation/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/UnresolvedComponentImplementation").toURL().toString())); - } - - @Override - protected void tearDown() throws Exception { - } - - public void testCalculator() throws Exception { - ExtensionPointRegistry registry = ((NodeImpl)node).getExtensionPointRegistry(); - UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - Monitor monitor = monitorFactory.createMonitor(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnresolvedComponentImplementation", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/XSDValidationTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/XSDValidationTestCase.java deleted file mode 100644 index 91c7e41e9e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/calculator/warning/XSDValidationTestCase.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package calculator.warning; - -import java.io.File; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -/** - * This shows how to test the Calculator service component. - */ -public class XSDValidationTestCase extends TestCase { - - private CalculatorService calculatorService; - private SCANode node; - private Exception startUpException; - - @Override - protected void setUp() throws Exception { - SCANodeFactory nodeFactory = SCANodeFactory.newInstance(); - try { - node = nodeFactory.createSCANode(new File("src/main/resources/XsdValidation/Calculator.composite").toURL().toString(), - new SCAContribution("TestContribution", - new File("src/main/resources/XsdValidation").toURL().toString())); - node.start(); - calculatorService = ((SCAClient)node).getService(CalculatorService.class, "CalculatorServiceComponent"); - } catch (Exception ex){ - startUpException = ex; - } - } - - @Override - protected void tearDown() throws Exception { - if (node != null){ - node.stop(); - } - } - - - public void testCalculator() throws Exception { - - assertEquals("org.apache.tuscany.sca.monitor.MonitorRuntimeException: Unexpected element found. It should appear inside a or element.", startUpException.getMessage()); - - } - -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/java/AttributePackageMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/java/AttributePackageMissingTestCase.java deleted file mode 100644 index c306373ecb..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/java/AttributePackageMissingTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package contribution.java; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class AttributePackageMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/contribution/java/AttributePackageMissing/Calculator.composite", - "TestContribution", "src/main/resources/contribution/java/AttributePackageMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("AttributePackageMissing", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/namespace/AttributeNameSpaceMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/namespace/AttributeNameSpaceMissingTestCase.java deleted file mode 100644 index c412a16f24..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/namespace/AttributeNameSpaceMissingTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package contribution.namespace; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class AttributeNameSpaceMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/contribution/namespace/AttributeNameSpaceMissing/Calculator.composite", - "TestContribution", "src/main/resources/contribution/namespace/AttributeNameSpaceMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("AttributeNameSpaceMissing", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java deleted file mode 100644 index 8a3687e618..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/resource/AttributeURIMissingTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package contribution.resource; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class AttributeURIMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/contribution/resource/AttributeURIMissing/Calculator.composite", - "TestContribution", "src/main/resources/contribution/resource/AttributeURIMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getProblems().get(1); - - assertNotNull(problem); - assertEquals("AttributeURIMissing", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/xml/AttributeCompositeMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/xml/AttributeCompositeMissingTestCase.java deleted file mode 100644 index e966c5104a..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/xml/AttributeCompositeMissingTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package contribution.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class AttributeCompositeMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/contribution/xml/AttributeCompositeMissing/Calculator.composite", - "TestContribution", "src/main/resources/contribution/xml/AttributeCompositeMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("AttributeCompositeMissing", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/xml/MultipleCompositeErrorsTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/xml/MultipleCompositeErrorsTestCase.java deleted file mode 100644 index 28bc3af4e3..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/contribution/xml/MultipleCompositeErrorsTestCase.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package contribution.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MultipleCompositeErrorsTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/contribution/xml/MultipleCompositeErrors/Calculator.composite", - "TestContribution", - "src/main/resources/contribution/xml/MultipleCompositeErrors/"); - } catch (Exception ex){ - //throw ex; - System.out.println("Got Exception"); - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals(5, monitor.getProblems().size()); - assertEquals("AttributeCompositeMissing", problem.getMessageId()); - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/domain/CustomCompositeBuilder.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/domain/CustomCompositeBuilder.java deleted file mode 100644 index 7f3199d472..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/domain/CustomCompositeBuilder.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package domain; - -import java.io.File; -import java.net.URI; -import java.net.URL; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import javax.xml.namespace.QName; -import javax.xml.stream.XMLInputFactory; -import javax.xml.stream.XMLOutputFactory; - -import org.apache.tuscany.sca.assembly.AssemblyFactory; -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.assembly.SCABindingFactory; -import org.apache.tuscany.sca.assembly.builder.CompositeBuilder; -import org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.DefaultValidatingXMLInputFactory; -import org.apache.tuscany.sca.contribution.processor.DefaultValidationSchemaExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessor; -import org.apache.tuscany.sca.contribution.processor.URLArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.ValidationSchemaExtensionPoint; -import org.apache.tuscany.sca.contribution.resolver.ExtensibleModelResolver; -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.ModuleActivator; -import org.apache.tuscany.sca.core.ModuleActivatorExtensionPoint; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.apache.tuscany.sca.definitions.SCADefinitions; -import org.apache.tuscany.sca.implementation.node.NodeImplementationFactory; -import org.apache.tuscany.sca.implementation.node.builder.impl.NodeCompositeBuilderImpl; -import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper; -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.MonitorFactory; -import org.apache.tuscany.sca.policy.IntentAttachPointTypeFactory; -import org.apache.tuscany.sca.workspace.Workspace; -import org.apache.tuscany.sca.workspace.WorkspaceFactory; -import org.apache.tuscany.sca.workspace.builder.ContributionDependencyBuilder; -import org.apache.tuscany.sca.workspace.builder.impl.ContributionDependencyBuilderImpl; - -public class CustomCompositeBuilder { - private ExtensionPointRegistry extensionPoints; - private URLArtifactProcessor contributionProcessor; - private ModelFactoryExtensionPoint modelFactories; - private WorkspaceFactory workspaceFactory; - private AssemblyFactory assemblyFactory; - private XMLOutputFactory outputFactory; - private StAXArtifactProcessor xmlProcessor; - private ContributionDependencyBuilder contributionDependencyBuilder; - private CompositeBuilder domainCompositeBuilder; - private CompositeBuilder nodeCompositeBuilder; - private NodeImplementationFactory nodeFactory; - //private AtomBindingFactory atomBindingFactory; - private static Workspace workspace; - private List policyDefinitions; - private Monitor monitor; - - private CustomCompositeBuilder() { - // no code req'd - } - - public static CustomCompositeBuilder getInstance() - { - if (ref == null) - ref = new CustomCompositeBuilder(); - return ref; - } - - private static CustomCompositeBuilder ref; - - private void init() { - - // Create extension point registry - extensionPoints = new DefaultExtensionPointRegistry(); - - // Create a monitor - UtilityExtensionPoint utilities = extensionPoints.getExtensionPoint(UtilityExtensionPoint.class); - MonitorFactory monitorFactory = utilities.getUtility(MonitorFactory.class); - monitor = monitorFactory.createMonitor(); - - // Initialize the Tuscany module activators - ModuleActivatorExtensionPoint moduleActivators = extensionPoints.getExtensionPoint(ModuleActivatorExtensionPoint.class); - for (ModuleActivator activator: moduleActivators.getModuleActivators()) { - activator.start(extensionPoints); - } - - // Get XML input/output factories - modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class); - XMLInputFactory inputFactory = modelFactories.getFactory(XMLInputFactory.class); - outputFactory = modelFactories.getFactory(XMLOutputFactory.class); - - // create the validating input factory out here just so that the - // monitor can be passed in - ValidationSchemaExtensionPoint schemas = new DefaultValidationSchemaExtensionPoint(); - XMLInputFactory validatingInputFactory = new DefaultValidatingXMLInputFactory(inputFactory, schemas, monitor); - modelFactories.addFactory(validatingInputFactory); - - // Get contribution workspace and assembly model factories - workspaceFactory = modelFactories.getFactory(WorkspaceFactory.class); - assemblyFactory = modelFactories.getFactory(AssemblyFactory.class); - nodeFactory = modelFactories.getFactory(NodeImplementationFactory.class); - //atomBindingFactory = modelFactories.getFactory(AtomBindingFactory.class); - - // Create XML artifact processors - StAXArtifactProcessorExtensionPoint xmlProcessorExtensions = extensionPoints.getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); - xmlProcessor = new ExtensibleStAXArtifactProcessor(xmlProcessorExtensions, inputFactory, outputFactory, monitor); - - // Create contribution content processor - URLArtifactProcessorExtensionPoint docProcessorExtensions = extensionPoints.getExtensionPoint(URLArtifactProcessorExtensionPoint.class); - contributionProcessor = docProcessorExtensions.getProcessor(Contribution.class); - - // Create a contribution dependency builder - contributionDependencyBuilder = new ContributionDependencyBuilderImpl(monitor); - - // Create a composite builder - SCABindingFactory scaBindingFactory = modelFactories.getFactory(SCABindingFactory.class); - IntentAttachPointTypeFactory attachPointTypeFactory = modelFactories.getFactory(IntentAttachPointTypeFactory.class); - InterfaceContractMapper contractMapper = utilities.getUtility(InterfaceContractMapper.class); - domainCompositeBuilder = new CompositeBuilderImpl(assemblyFactory, scaBindingFactory, attachPointTypeFactory, contractMapper, monitor); - - // Create a node composite builder - nodeCompositeBuilder = new NodeCompositeBuilderImpl(assemblyFactory, scaBindingFactory, contractMapper, null, monitor); - } - - public void loadContribution(String compositeURL, String sourceURI, String sourceURL) throws Exception { - init(); - - // Create workspace model - workspace = workspaceFactory.createWorkspace(); - workspace.setModelResolver(new ExtensibleModelResolver(workspace, extensionPoints)); - - // Read the sample store contribution - URI artifactURI = URI.create(sourceURI); - //URL contributionURL = FileHelper.toFile(new URL(sourceURL)).toURI().toURL(); - URL artifactURL = new File(sourceURL).toURI().toURL(); - URL contributionURL = new File(compositeURL).toURI().toURL(); - Contribution storeContribution = contributionProcessor.read(contributionURL, artifactURI, artifactURL); - workspace.getContributions().add(storeContribution); - - // Build the contribution dependencies - Map> contributionDependencies = new HashMap>(); - Set resolved = new HashSet(); - for (Contribution contribution: workspace.getContributions()) { - List dependencies = contributionDependencyBuilder.buildContributionDependencies(contribution, workspace); - - // Resolve contributions - for (Contribution dependency: dependencies) { - if (!resolved.contains(dependency)) { - resolved.add(dependency); - contributionProcessor.resolve(dependency, workspace.getModelResolver()); - } - } - - contributionDependencies.put(contribution, dependencies); - } - - // Create a composite model for the domain - /*Composite domainComposite = assemblyFactory.createComposite(); - domainComposite.setName(new QName(Constants.SCA10_NS, "domain")); - - // Add all deployables to it, normally the domain administrator would select - // the deployables to include - domainComposite.getIncludes().addAll(workspace.getDeployables()); - - // Build the domain composite and wire the components included in it - domainCompositeBuilder.build(domainComposite);*/ - } - - public Monitor getMonitorInstance() { - return monitor; - } - - public void buildContribution() throws Exception { - // Create a composite model for the domain - Composite domainComposite = assemblyFactory.createComposite(); - domainComposite.setName(new QName("http://customdomain", "domain")); - - // Add all deployables to it, normally the domain administrator would select - // the deployables to include - domainComposite.getIncludes().addAll(workspace.getDeployables()); - - // Build the domain composite and wire the components included in it - domainCompositeBuilder.build(domainComposite); - } - - public void readContribution(String compositeURL, String sourceURI, String sourceURL) throws Exception { - init(); - - // Create workspace model - workspace = workspaceFactory.createWorkspace(); - workspace.setModelResolver(new ExtensibleModelResolver(workspace, extensionPoints)); - - // Read the sample store contribution - URI artifactURI = URI.create(sourceURI); - //URL contributionURL = FileHelper.toFile(new URL(sourceURL)).toURI().toURL(); - URL artifactURL = new File(sourceURL).toURI().toURL(); - URL contributionURL = new File(compositeURL).toURI().toURL(); - Contribution storeContribution = contributionProcessor.read(contributionURL, artifactURI, artifactURL); - workspace.getContributions().add(storeContribution); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/AttributeUnrecognizedNamespaceTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/AttributeUnrecognizedNamespaceTestCase.java deleted file mode 100644 index cbc9e199e3..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/AttributeUnrecognizedNamespaceTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.bpel; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class AttributeUnrecognizedNamespaceTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/bpel/AttributeUnrecognizedNamespace/helloworld.composite", - "TestContribution", "src/main/resources/impl/bpel/AttributeUnrecognizedNamespace/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - System.out.println("AttributeUnrecognizedNamespaceTestCase problem:" + problem.getMessageId()); - assertEquals("AttributeUnrecognizedNamespace", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/AttributeWithoutNamespaceTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/AttributeWithoutNamespaceTestCase.java deleted file mode 100644 index eb2eedb340..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/AttributeWithoutNamespaceTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.bpel; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class AttributeWithoutNamespaceTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/bpel/AttributeWithoutNamespace/helloworld.composite", - "TestContribution", "src/main/resources/impl/bpel/AttributeWithoutNamespace/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("AttributeWithoutNamespace", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/BPELProcessNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/BPELProcessNotFoundTestCase.java deleted file mode 100644 index e93918a94c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/BPELProcessNotFoundTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.bpel; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class BPELProcessNotFoundTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/bpel/BPELProcessNotFound/helloworld.composite", - "TestContribution", "src/main/resources/impl/bpel/BPELProcessNotFound/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("BPELProcessNotFound", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/CannotResolveWSDLReferenceTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/CannotResolveWSDLReferenceTestCase.java deleted file mode 100644 index d711758a21..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/CannotResolveWSDLReferenceTestCase.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.bpel; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class CannotResolveWSDLReferenceTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/bpel/CannotResolveWSDLReference/helloworld.composite", - "TestContribution", "src/main/resources/impl/bpel/CannotResolveWSDLReference/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { -// TUSCANY-2970:tests don't work in continuum build - -// Monitor monitor = customDomain.getMonitorInstance(); -// Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - -// assertNotNull(problem); -// assertEquals("CannotResolveWSDLReference", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/MyRolePartnerRoleNullTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/MyRolePartnerRoleNullTestCase.java deleted file mode 100644 index b6c3b6c7c9..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/MyRolePartnerRoleNullTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.bpel; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MyRolePartnerRoleNullTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/bpel/MyRolePartnerRoleNull/helloworld.composite", - "TestContribution", "src/main/resources/impl/bpel/MyRolePartnerRoleNull/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("MyRolePartnerRoleNull", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkHasBothAttrTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkHasBothAttrTestCase.java deleted file mode 100644 index c623c2b157..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkHasBothAttrTestCase.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.bpel; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class PartnerLinkHasBothAttrTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/bpel/PartnerLinkHasBothAttr/helloworld.composite", - "TestContribution", "src/main/resources/impl/bpel/PartnerLinkHasBothAttr/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - assertTrue(((DefaultMonitorImpl)monitor).isMessageLogged("PartnerLinkHasBothAttr")); - /*Problem problem = ((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem(); - assertNotNull(problem); - assertEquals("PartnerLinkHasBothAttr", problem.getMessageId());*/ - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkNoMatchingTypeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkNoMatchingTypeTestCase.java deleted file mode 100644 index 311a1fd8e7..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkNoMatchingTypeTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.bpel; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class PartnerLinkNoMatchingTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/bpel/PartnerLinkNoMatchingType/helloworld.composite", - "TestContribution", "src/main/resources/impl/bpel/PartnerLinkNoMatchingType/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { -// TUSCANY-2970:tests don't work in continuum build -// Monitor monitor = customDomain.getMonitorInstance(); -// Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - -// assertNotNull(problem); -// assertEquals("PartnerLinkNoMatchingType", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkTypeNoRolesTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkTypeNoRolesTestCase.java deleted file mode 100644 index 999f4a4955..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/bpel/PartnerLinkTypeNoRolesTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.bpel; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class PartnerLinkTypeNoRolesTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/helloworld.composite", - "TestContribution", "src/main/resources/impl/bpel/PartnerLinkTypeNoRoles/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { -// TUSCANY-2970:tests don't work in continuum build -// Monitor monitor = customDomain.getMonitorInstance(); -// assertTrue(((DefaultMonitorImpl)monitor).isMessageLogged("PartnerLinkTypeNoRoles")); - /*Problem problem = ((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem(); - assertNotNull(problem); - assertEquals("PartnerLinkTypeNoRoles", problem.getMessageId());*/ - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/ejb/EJBLinkAttributeMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/ejb/EJBLinkAttributeMissingTestCase.java deleted file mode 100644 index e0a3216d52..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/ejb/EJBLinkAttributeMissingTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.ejb; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class EJBLinkAttributeMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/ejb/EJBLinkAttributeMissing/ejb.composite", - "TestContribution", "src/main/resources/impl/ejb/EJBLinkAttributeMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("EJBLinkAttributeMissing", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/java/ClassNotFoundExceptionTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/java/ClassNotFoundExceptionTestCase.java deleted file mode 100644 index 24d1c197a6..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/java/ClassNotFoundExceptionTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class ClassNotFoundExceptionTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/java/ClassNotFoundException/Calculator.composite", - "TestContribution", "src/main/resources/impl/java/ClassNotFoundException/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ClassNotFoundException", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/java/ContributionResolveExceptionTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/java/ContributionResolveExceptionTestCase.java deleted file mode 100644 index e3e38e86c3..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/java/ContributionResolveExceptionTestCase.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.java; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class ContributionResolveExceptionTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/java/ContributionResolveException/Calculator.composite", - "TestContribution", "src/main/resources/impl/java/ContributionResolveException/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - - assertNotNull(problem); - assertEquals("ContributionResolveException", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/CouldNotLocateOSGiBundleTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/CouldNotLocateOSGiBundleTestCase.java deleted file mode 100644 index b51403fec1..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/CouldNotLocateOSGiBundleTestCase.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.osgi; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.osgi.runtime.OSGiRuntime; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class CouldNotLocateOSGiBundleTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - //OSGiTestBundles.createBundle("src/main/resources/impl/osgi/MissingComponentTypeFile/OSGiTestService.jar", OSGiTestInterface.class, OSGiTestImpl.class); - - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/osgitest.composite", - "TestContribution", "src/main/resources/impl/osgi/CouldNotLocateOSGiBundle/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - OSGiRuntime.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("CouldNotLocateOSGiBundle", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/MissingComponentTypeFileTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/MissingComponentTypeFileTestCase.java deleted file mode 100644 index 1939455192..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/MissingComponentTypeFileTestCase.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.osgi; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.osgi.runtime.OSGiRuntime; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MissingComponentTypeFileTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - OSGiTestBundles.createBundle("src/main/resources/impl/osgi/MissingComponentTypeFile/OSGiTestService.jar", OSGiTestInterface.class, OSGiTestImpl.class); - - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/osgi/MissingComponentTypeFile/osgitest.composite", - "TestContribution", "src/main/resources/impl/osgi/MissingComponentTypeFile/"); - } catch (Exception ex){ - System.out.println(ex.toString()); - ex.printStackTrace(); - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - OSGiRuntime.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("MissingComponentTypeFile", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/OSGiTestBundles.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/OSGiTestBundles.java deleted file mode 100644 index 398c028dd8..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/OSGiTestBundles.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -package impl.osgi; - -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.FileInputStream; -import java.io.FileOutputStream; -import java.net.URL; -import java.util.jar.JarOutputStream; -import java.util.jar.Manifest; -import java.util.zip.ZipEntry; - - -/** - * - * Utility class to create OSGi bundles - * - * @version $Rev$ $Date$ - */ -public class OSGiTestBundles { - - public static void createBundle(String jarName, - Class interfaceClass, Class implClass) throws Exception { - - ByteArrayOutputStream out = new ByteArrayOutputStream(); - - String EOL = System.getProperty("line.separator"); - - String packageName = interfaceClass.getPackage().getName(); - String bundleName = interfaceClass.getName(); - - String manifestStr = "Manifest-Version: 1.0" + EOL - + "Bundle-ManifestVersion: 2" + EOL + "Bundle-Name: " - + bundleName + EOL + "Bundle-SymbolicName: " + bundleName + EOL - + "Bundle-Version: " + "1.0.0" + EOL - + "Bundle-Localization: plugin" + EOL; - - StringBuilder manifestBuf = new StringBuilder(); - manifestBuf.append(manifestStr); - manifestBuf.append("Export-Package: " + packageName + EOL); - manifestBuf.append("Import-Package: org.osgi.framework" + EOL); - manifestBuf.append("Bundle-Activator: " + implClass.getName() + EOL); - - ByteArrayInputStream manifestStream = new ByteArrayInputStream(manifestBuf.toString().getBytes()); - Manifest manifest = new Manifest(); - manifest.read(manifestStream); - - - JarOutputStream jarOut = new JarOutputStream(out, manifest); - - String interfaceClassName = interfaceClass.getName().replaceAll("\\.", - "/") - + ".class"; - - URL url = interfaceClass.getClassLoader().getResource( - interfaceClassName); - String path = url.getPath(); - - ZipEntry ze = new ZipEntry(interfaceClassName); - - jarOut.putNextEntry(ze); - FileInputStream file = new FileInputStream(path); - byte[] fileContents = new byte[file.available()]; - file.read(fileContents); - jarOut.write(fileContents); - - String implClassName = implClass.getName().replaceAll("\\.", - "/") - + ".class"; - - url = implClass.getClassLoader().getResource(implClassName); - path = url.getPath(); - - ze = new ZipEntry(implClassName); - - jarOut.putNextEntry(ze); - file = new FileInputStream(path); - fileContents = new byte[file.available()]; - file.read(fileContents); - jarOut.write(fileContents); - - file.close(); - - jarOut.close(); - out.close(); - - FileOutputStream fileOut = new FileOutputStream(jarName); - fileOut.write(out.toByteArray()); - fileOut.close(); - - - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/PropertyShouldSpecifySRTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/PropertyShouldSpecifySRTestCase.java deleted file mode 100644 index 4a82f569de..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/osgi/PropertyShouldSpecifySRTestCase.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.osgi; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.apache.tuscany.sca.osgi.runtime.OSGiRuntime; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class PropertyShouldSpecifySRTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - OSGiTestBundles.createBundle("src/main/resources/impl/osgi/PropertyShouldSpecifySR/OSGiTestService.jar", OSGiTestInterface.class, OSGiTestImpl.class); - - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/osgi/PropertyShouldSpecifySR/osgitest.composite", - "TestContribution", "src/main/resources/impl/osgi/PropertyShouldSpecifySR/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - OSGiRuntime.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("PropertyShouldSpecifySR", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/resource/CouldNotResolveLocationTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/resource/CouldNotResolveLocationTestCase.java deleted file mode 100644 index 5881d866a0..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/resource/CouldNotResolveLocationTestCase.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.resource; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class CouldNotResolveLocationTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/resource/CouldNotResolveLocation/resource.composite", - "TestContribution", "src/main/resources/impl/resource/CouldNotResolveLocation/"); - } catch (Exception ex){ - //throw ex; - } - } - - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - Assert.assertNotNull(problem); - Assert.assertEquals("CouldNotResolveLocation", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/resource/LocationAttributeMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/resource/LocationAttributeMissingTestCase.java deleted file mode 100644 index 8fefaa05eb..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/resource/LocationAttributeMissingTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.resource; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class LocationAttributeMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/resource/LocationAttributeMissing/resource.composite", - "TestContribution", "src/main/resources/impl/resource/LocationAttributeMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("LocationAttributeMissing", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/ContributionResolveExceptionTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/ContributionResolveExceptionTestCase.java deleted file mode 100644 index ebdd05d980..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/ContributionResolveExceptionTestCase.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.spring; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class ContributionResolveExceptionTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/spring/ContributionResolveException/SpringHelloWorld.composite", - "TestContribution", "src/main/resources/impl/spring/ContributionResolveException/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - assertTrue(((DefaultMonitorImpl)monitor).isMessageLogged("ContributionResolveException")); - //assertEquals("ContributionResolveException", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/LocationAttributeMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/LocationAttributeMissingTestCase.java deleted file mode 100644 index 7974aa5daf..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/LocationAttributeMissingTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.spring; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class LocationAttributeMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/spring/LocationAttributeMissing/SpringHelloWorld.composite", - "TestContribution", "src/main/resources/impl/spring/LocationAttributeMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("LocationAttributeMissing", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/UnableToResolveComponentTypeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/UnableToResolveComponentTypeTestCase.java deleted file mode 100644 index 0ad7bc0918..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/spring/UnableToResolveComponentTypeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.spring; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnableToResolveComponentTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/spring/UnableToResolveComponentType/SpringHelloWorld.composite", - "TestContribution", "src/main/resources/impl/spring/UnableToResolveComponentType/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - //assertNotNull(problem); - //assertEquals("UnableToResolveComponentType", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/widget/CouldNotResolveLocationTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/widget/CouldNotResolveLocationTestCase.java deleted file mode 100644 index 3935afa79c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/widget/CouldNotResolveLocationTestCase.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.widget; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class CouldNotResolveLocationTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/widget/CouldNotResolveLocation/widget.composite", - "TestContribution", "src/main/resources/impl/widget/CouldNotResolveLocation/"); - } catch (Exception ex){ - //throw ex; - } - } - - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - Assert.assertNotNull(problem); - Assert.assertEquals("CouldNotResolveLocation", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/widget/LocationAttributeMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/widget/LocationAttributeMissingTestCase.java deleted file mode 100644 index daf8eab56f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/widget/LocationAttributeMissingTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.widget; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class LocationAttributeMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/widget/LocationAttributeMissing/widget.composite", - "TestContribution", "src/main/resources/impl/widget/LocationAttributeMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //nothing to do - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("LocationAttributeMissing", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/xquery/CouldNotLocateFileTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/xquery/CouldNotLocateFileTestCase.java deleted file mode 100644 index 3dbbc61d9c..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/xquery/CouldNotLocateFileTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.xquery; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class CouldNotLocateFileTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/xquery/CouldNotLocateFile/HelloWorld.composite", - "TestContribution", "src/main/resources/impl/xquery/CouldNotLocateFile/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("CouldNotLocateFile", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/xquery/LocationAttributeMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/xquery/LocationAttributeMissingTestCase.java deleted file mode 100644 index 584c11c061..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/impl/xquery/LocationAttributeMissingTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package impl.xquery; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class LocationAttributeMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/impl/xquery/LocationAttributeMissing/HelloWorld.composite", - "TestContribution", "src/main/resources/impl/xquery/LocationAttributeMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("LocationAttributeMissing", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacejava/xml/ClassNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacejava/xml/ClassNotFoundTestCase.java deleted file mode 100644 index d941f41d2e..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacejava/xml/ClassNotFoundTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package interfacejava.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class ClassNotFoundTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/interfacejava/xml/ClassNotFoundException/Calculator.composite", - "TestContribution", "src/main/resources/interfacejava/xml/ClassNotFoundException/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ClassNotFoundException", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacejava/xml/ContributionResolveExceptionTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacejava/xml/ContributionResolveExceptionTestCase.java deleted file mode 100644 index 0fb397011b..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacejava/xml/ContributionResolveExceptionTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package interfacejava.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class ContributionResolveExceptionTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/interfacejava/xml/ContributionResolveException/Calculator.composite", - "TestContribution", "src/main/resources/interfacejava/xml/ContributionResolveException/"); - } catch (Exception ex){ - throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - //assertNotNull(problem); - //assertEquals("ContributionResolveException", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacewsdl/xml/InvalidWSDLInterfaceAttrTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacewsdl/xml/InvalidWSDLInterfaceAttrTestCase.java deleted file mode 100644 index ecd2e0a760..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacewsdl/xml/InvalidWSDLInterfaceAttrTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package interfacewsdl.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class InvalidWSDLInterfaceAttrTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/Calculator.composite", - "TestContribution", "src/main/resources/interfacewsdl/xml/InvalidWSDLInterfaceAttr/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getProblems().get(0); - - assertNotNull(problem); - assertEquals("InvalidWSDLInterfaceAttr", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacewsdl/xml/WsdlInterfaceDoesNotMatchTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacewsdl/xml/WsdlInterfaceDoesNotMatchTestCase.java deleted file mode 100644 index 2149942c25..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/interfacewsdl/xml/WsdlInterfaceDoesNotMatchTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package interfacewsdl.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class WsdlInterfaceDoesNotMatchTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/helloworldwsjms.composite", - "TestContribution", "src/main/resources/interfacewsdl/xml/WsdlInterfaceDoesNotMatch/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("WsdlInterfaceDoesNotMatch", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/AlwaysProvidedIntentNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/AlwaysProvidedIntentNotFoundTestCase.java deleted file mode 100644 index 1254f273b7..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/AlwaysProvidedIntentNotFoundTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package policy.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class AlwaysProvidedIntentNotFoundTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/Calculator.composite", - "TestContribution", "src/main/resources/policy/xml/AlwaysProvidedIntentNotFound/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("AlwaysProvidedIntentNotFound", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/ErrorInPolicyIntentDefinitionTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/ErrorInPolicyIntentDefinitionTestCase.java deleted file mode 100644 index 150a9267c1..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/ErrorInPolicyIntentDefinitionTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package policy.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class ErrorInPolicyIntentDefinitionTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/Calculator.composite", - "TestContribution", "src/main/resources/policy/xml/ErrorInPolicyIntentDefinition/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("ErrorInPolicyIntentDefinition", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/IntentNotSpecifiedTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/IntentNotSpecifiedTestCase.java deleted file mode 100644 index 1e243689d6..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/IntentNotSpecifiedTestCase.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package policy.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class IntentNotSpecifiedTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/policy/xml/IntentNotSpecified/Calculator.composite", - "TestContribution", "src/main/resources/policy/xml/IntentNotSpecified/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - assertTrue(((DefaultMonitorImpl)monitor).isMessageLogged("IntentNotSpecified")); - /*Problem problem = ((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem(); - assertNotNull(problem); - assertEquals("IntentNotSpecified", problem.getMessageId());*/ - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/MayProvideIntentNotFoundTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/MayProvideIntentNotFoundTestCase.java deleted file mode 100644 index f2b0b7222f..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/MayProvideIntentNotFoundTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package policy.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class MayProvideIntentNotFoundTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/policy/xml/MayProvideIntentNotFound/Calculator.composite", - "TestContribution", "src/main/resources/policy/xml/MayProvideIntentNotFound/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("MayProvideIntentNotFound", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/RequiredAttributeMissingTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/RequiredAttributeMissingTestCase.java deleted file mode 100644 index e5aba5b481..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/RequiredAttributeMissingTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package policy.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class RequiredAttributeMissingTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/policy/xml/RequiredAttributeMissing/Calculator.composite", - "TestContribution", "src/main/resources/policy/xml/RequiredAttributeMissing/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("RequiredAttributeMissing", problem.getMessageId()); - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/UnableToMapPoliciesTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/UnableToMapPoliciesTestCase.java deleted file mode 100644 index 5bfc77d267..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/UnableToMapPoliciesTestCase.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package policy.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; -import org.junit.Ignore; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnableToMapPoliciesTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/policy/xml/UnableToMapPolicies/Calculator.composite", - "TestContribution", "src/main/resources/policy/xml/UnableToMapPolicies/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - @Ignore("TUSCANY-2538") - public void testCalculator() { - //FIXME This needs to be fixed, as it was working based on processor ignoring - //elements... - /* - Monitor monitor = customDomain.getMonitorInstance(); - assertTrue(((DefaultLoggingMonitorImpl)monitor).isMessageLogged("UnableToMapPolicies")); - */ - /*Problem problem = ((DefaultLoggingMonitorImpl)monitor).getLastLoggedProblem(); - assertNotNull(problem); - assertEquals("UnableToMapPolicies", problem.getMessageId());*/ - } -} diff --git a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/UnrecognizedIntentAttachPointTypeTestCase.java b/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/UnrecognizedIntentAttachPointTypeTestCase.java deleted file mode 100644 index 64b527e131..0000000000 --- a/tags/java/sca/1.5.1-RC1/itest/validation/src/test/java/policy/xml/UnrecognizedIntentAttachPointTypeTestCase.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package policy.xml; - -import junit.framework.TestCase; - -import org.apache.tuscany.sca.monitor.Monitor; -import org.apache.tuscany.sca.monitor.Problem; -import org.apache.tuscany.sca.monitor.impl.DefaultMonitorImpl; - -import domain.CustomCompositeBuilder; - -/** - * This shows how to test the Calculator service component. - */ -public class UnrecognizedIntentAttachPointTypeTestCase extends TestCase { - - private CustomCompositeBuilder customDomain; - - @Override - protected void setUp() throws Exception - { - customDomain = CustomCompositeBuilder.getInstance(); - try { - customDomain.loadContribution("src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/Calculator.composite", - "TestContribution", "src/main/resources/policy/xml/UnrecognizedIntentAttachPointType/"); - } catch (Exception ex){ - //throw ex; - } - } - - @Override - protected void tearDown() throws Exception { - //node.stop(); - } - - public void testCalculator() { - Monitor monitor = customDomain.getMonitorInstance(); - Problem problem = ((DefaultMonitorImpl)monitor).getLastLoggedProblem(); - - assertNotNull(problem); - assertEquals("UnrecognizedIntentAttachPointType", problem.getMessageId()); - } -} -- cgit v1.2.3