Author: gnodet
Date: Thu Nov 8 08:44:34 2007
New Revision: 593226
URL: http://svn.apache.org/viewvc?rev=593226&view=rev
Log:
Add junit test for jbi descriptor parsing + xsd for validation
Added:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/jbi/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/jbi/deployer/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/jbi/deployer/descriptor/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/jbi/deployer/descriptor/jbi-descriptor.xsd
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/java/org/apache/servicemix/jbi/deployer/descriptor/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactoryTest.java
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/component.xml
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceAssembly.xml
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceUnit.xml
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/sharedLibrary.xml
Modified:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactory.java
Modified:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactory.java
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactory.java?rev=593226&r1=593225&r2=593226&view=diff
==============================================================================
---
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactory.java
(original)
+++
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactory.java
Thu Nov 8 08:44:34 2007
@@ -92,7 +92,7 @@
copyInputStream(url.openStream(), baos);
// Validate descriptor
SchemaFactory schemaFactory =
SchemaFactory.newInstance(XSD_SCHEMA_LANGUAGE);
- Schema schema =
schemaFactory.newSchema(DescriptorFactory.class.getResource("/jbi-descriptor.xsd"));
+ Schema schema =
schemaFactory.newSchema(DescriptorFactory.class.getResource("jbi-descriptor.xsd"));
Validator validator = schema.newValidator();
validator.setErrorHandler(new ErrorHandler() {
public void warning(SAXParseException exception) throws
SAXException {
Added:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/jbi/deployer/descriptor/jbi-descriptor.xsd
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/jbi/deployer/descriptor/jbi-descriptor.xsd?rev=593226&view=auto
==============================================================================
---
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/jbi/deployer/descriptor/jbi-descriptor.xsd
(added)
+++
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/main/resources/org/apache/servicemix/jbi/deployer/descriptor/jbi-descriptor.xsd
Thu Nov 8 08:44:34 2007
@@ -0,0 +1,204 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+-->
+<xs:schema xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
targetNamespace="http://java.sun.com/xml/ns/jbi">
+ <xs:element name="jbi">
+ <xs:complexType>
+ <xs:choice>
+ <xs:element ref="jbi:component"/>
+ <xs:element ref="jbi:shared-library"/>
+ <xs:element ref="jbi:service-assembly"/>
+ <xs:element ref="jbi:services"/>
+ </xs:choice>
+ <xs:attribute name="version" type="xs:decimal" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="component">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="identification" type="jbi:identification"/>
+ <xs:element name="component-class-name">
+ <xs:complexType mixed="true">
+ <xs:attribute name="description"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="component-class-path" type="jbi:class-path"/>
+ <xs:element name="bootstrap-class-name" type="xs:string"/>
+ <xs:element name="bootstrap-class-path" type="jbi:class-path"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="shared-library">
+ <xs:complexType mixed="true">
+ <xs:attribute name="version"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
+ <xs:any namespace="##other" processContents="skip"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="service-engine"/>
+ <xs:enumeration value="binding-component"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="component-class-loader-delegation">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="parent-first"/>
+ <xs:enumeration value="self-first"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="bootstrap-class-loader-delegation">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="parent-first"/>
+ <xs:enumeration value="self-first"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="shared-library">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="identification" type="jbi:identification"/>
+ <xs:element name="shared-library-class-path" type="jbi:class-path"/>
+ </xs:sequence>
+ <xs:attribute name="class-loader-delegation">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="parent-first"/>
+ <xs:enumeration value="self-first"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="version"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="service-assembly">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="identification" type="jbi:identification"/>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="service-unit">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="identification" type="jbi:identification"/>
+ <xs:element name="target">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="artifacts-zip" type="xs:string"/>
+ <xs:element name="component-name" type="xs:NCName"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
+ <xs:any namespace="##other" processContents="skip"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element minOccurs="0" name="connections">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="connection">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="consumer">
+ <xs:complexType>
+ <xs:attribute name="interface-name" type="xs:QName"/>
+ <xs:attribute name="service-name" type="xs:QName"/>
+ <xs:attribute name="endpoint-name"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="provider">
+ <xs:complexType>
+ <xs:attribute name="service-name" type="xs:QName"
use="required"/>
+ <xs:attribute name="endpoint-name" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
+ <xs:any namespace="##other" processContents="skip"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
+ <xs:any namespace="##other" processContents="skip"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="services">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="provides">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
+ <xs:any namespace="##other" processContents="skip"/>
+ </xs:choice>
+ <xs:attribute name="interface-name" type="xs:QName" use="required"/>
+ <xs:attribute name="service-name" type="xs:QName" use="required"/>
+ <xs:attribute name="endpoint-name" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element maxOccurs="unbounded" minOccurs="0" name="consumes">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
+ <xs:any namespace="##other" processContents="skip"/>
+ </xs:choice>
+ <xs:attribute name="interface-name" type="xs:QName" use="required"/>
+ <xs:attribute name="service-name" type="xs:QName"/>
+ <xs:attribute name="endpoint-name"/>
+ <xs:attribute name="link-type">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="standard"/>
+ <xs:enumeration value="hard"/>
+ <xs:enumeration value="soft"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
+ <xs:any namespace="##other" processContents="skip"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="binding-component" type="xs:boolean" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="identification">
+ <xs:sequence>
+ <xs:element name="name" type="xs:NCName"/>
+ <xs:element name="description" type="xs:string"/>
+ <xs:choice maxOccurs="unbounded" minOccurs="0">
+ <xs:any namespace="##other" processContents="skip"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="class-path">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" name="path-element" type="xs:string"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Added:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactoryTest.java
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactoryTest.java?rev=593226&view=auto
==============================================================================
---
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactoryTest.java
(added)
+++
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/java/org/apache/servicemix/jbi/deployer/descriptor/DescriptorFactoryTest.java
Thu Nov 8 08:44:34 2007
@@ -0,0 +1,148 @@
+/*
+ * 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 org.apache.servicemix.jbi.deployer.descriptor;
+
+import java.util.Arrays;
+
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.DocumentFragment;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
+import org.junit.Test;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: gnodet
+ * Date: Nov 8, 2007
+ * Time: 5:35:15 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class DescriptorFactoryTest {
+
+ @Test
+ public void testServiceUnit() throws Exception {
+ Descriptor root =
DescriptorFactory.buildDescriptor(getClass().getResource("serviceUnit.xml"));
+ assertNotNull("Unable to parse descriptor", root);
+
+ Services services = root.getServices();
+ Consumes[] consumes = services.getConsumes();
+ assertNotNull("consumes are null", consumes);
+ assertEquals("consumes size", 1, consumes.length);
+ }
+
+ @Test
+ public void testSharedLibrary() throws Exception {
+ Descriptor root =
DescriptorFactory.buildDescriptor(getClass().getResource("sharedLibrary.xml"));
+ assertNotNull("Unable to parse descriptor", root);
+
+ SharedLibrary sl = root.getSharedLibrary();
+ Identification identification = sl.getIdentification();
+ assertEquals("getName", "TestSharedLibrary", identification.getName());
+ assertEquals("getDescription", "This is a test shared library.",
identification.getDescription());
+ }
+
+ @Test
+ public void testServiceAssembly() throws Exception {
+ Descriptor root =
DescriptorFactory.buildDescriptor(getClass().getResource("serviceAssembly.xml"));
+ assertNotNull("Unable to parse descriptor", root);
+
+ ServiceAssembly serviceAssembly = root.getServiceAssembly();
+ assertNotNull("serviceAssembly is null", serviceAssembly);
+
+ Identification identification = serviceAssembly.getIdentification();
+ assertNotNull("identification is null", identification);
+ assertEquals("getName", "ServiceAssembly_041207153211-0800_saId",
identification.getName());
+ assertEquals("getDescription", "Description of Service Assembly :
ServiceAssembly", identification.getDescription());
+
+ ServiceUnit[] serviceUnits = serviceAssembly.getServiceUnits();
+ assertNotNull("serviceUnits are null", serviceUnits);
+ assertEquals("serviceUnits size", 4, serviceUnits.length);
+
+ assertEquals("getIdentification().getName() for 0",
"TransformationSU_041207152821-0800_suId",
+ serviceUnits[0].getIdentification().getName());
+ assertEquals("getIdentification().getDescription() for 0",
"Description of Serviceunit: TransformationSU",
+ serviceUnits[0].getIdentification().getDescription());
+ assertEquals("getTarget().getArtifactsZip() for 0",
"TransformationSU.zip", serviceUnits[0].getTarget().getArtifactsZip());
+ assertEquals("getTarget().getComponentName() for 0",
"SunTransformationEngine", serviceUnits[0].getTarget().getComponentName());
+
+ assertEquals("getIdentification().getName() for 3",
"SequencingEngineSU_041207152507-0800_suId", serviceUnits[3]
+ .getIdentification().getName());
+ assertEquals("getIdentification().getDescription() for 3",
"Description of Serviceunit: SequencingEngineSU",
+ serviceUnits[3].getIdentification().getDescription());
+ assertEquals("getTarget().getArtifactsZip() for 3",
"SequencingEngineSU.zip", serviceUnits[3].getTarget().getArtifactsZip());
+ assertEquals("getTarget().getComponentName() for 3",
"SunSequencingEngine", serviceUnits[3].getTarget().getComponentName());
+
+ Connection[] connections =
serviceAssembly.getConnections().getConnections();
+ assertNotNull("connections are null", connections);
+ assertEquals("connections size", 2, connections.length);
+
+ assertEquals("getConsumer().getServiceName() for 0", new
QName("urn:csi", "csi-service"), connections[0].getConsumer().getServiceName());
+ }
+
+ @Test
+ public void testComponent() throws Exception {
+ Descriptor root =
DescriptorFactory.buildDescriptor(getClass().getResource("component.xml"));
+ assertNotNull("Unable to parse descriptor", root);
+
+ // component stuff
+ Component component = root.getComponent();
+ assertNotNull("component is null", component);
+ assertEquals("getBootstrapClassName", "com.foo.Engine1Bootstrap",
component.getBootstrapClassName());
+ assertEquals("getComponentClassName", "com.foo.Engine1",
component.getComponentClassName());
+ assertEquals("getComponentClassPath", new ClassPath(new String[]
{"Engine1.jar"}), component.getComponentClassPath());
+ assertEquals("getBootstrapClassPath", new ClassPath(new String[]
{"Engine2.jar"}), component.getBootstrapClassPath());
+
+ assertEquals("getDescription", "foo", component.getDescription());
+
+ assertArrayEquals("getSharedLibraries", new SharedLibraryList[] {new
SharedLibraryList("slib1")}, component.getSharedLibraries());
+
+ Identification identification = component.getIdentification();
+ assertNotNull("identification is null", identification);
+ assertEquals("getName", "example-engine-1", identification.getName());
+ assertEquals("getDescription", "An example service engine",
identification.getDescription());
+
+ InstallationDescriptorExtension descriptorExtension =
component.getDescriptorExtension();
+ assertNotNull("descriptorExtension is null", descriptorExtension);
+
+ DocumentFragment fragment =
descriptorExtension.getDescriptorExtension();
+ assertNotNull("fragment is null", fragment);
+ }
+
+ protected static void assertArrayEquals(String text, Object[] expected,
Object[] actual) {
+ assertTrue(text + ". Expected <" + toString(expected) + "> Actual <"
+ toString(actual) + ">", Arrays.equals(expected, actual));
+ }
+
+ protected static String toString(Object[] objects) {
+ if (objects == null) {
+ return "null Object[]";
+ }
+ StringBuffer buffer = new StringBuffer("[");
+ for (int i = 0; i < objects.length; i++) {
+ Object object = objects[i];
+ if (i > 0) {
+ buffer.append(", ");
+ }
+ buffer.append(object);
+ }
+ buffer.append("]");
+ return buffer.toString();
+ }
+
+}
Added:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/component.xml
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/component.xml?rev=593226&view=auto
==============================================================================
---
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/component.xml
(added)
+++
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/component.xml
Thu Nov 8 08:44:34 2007
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi"
+ xmlns:foo="http://www.foo.com/ns/bar">
+ <component type="service-engine">
+ <identification>
+ <name>example-engine-1</name>
+ <description>An example service engine</description>
+ <foo:TypeInfo part-number="012AB490-578F-114FAA">
+ BPEL:2.0:XQuery:1.0:XPath:2.0:XPath:1.0
+ </foo:TypeInfo>
+ </identification>
+ <component-class-name
description="foo">com.foo.Engine1</component-class-name>
+ <component-class-path>
+ <path-element>Engine1.jar</path-element>
+ </component-class-path>
+ <bootstrap-class-name>com.foo.Engine1Bootstrap</bootstrap-class-name>
+ <bootstrap-class-path>
+ <path-element>Engine2.jar</path-element>
+ </bootstrap-class-path>
+ <shared-library>slib1</shared-library>
+
+
+ <foo:Configuration version="1.0">
+ <foo:ThreadPool size="10"/>
+ <foo:Queue1 size="50"/>
+ </foo:Configuration>
+ </component>
+</jbi>
Added:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceAssembly.xml
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceAssembly.xml?rev=593226&view=auto
==============================================================================
---
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceAssembly.xml
(added)
+++
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceAssembly.xml
Thu Nov 8 08:44:34 2007
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<jbi version="1" xmlns="http://java.sun.com/xml/ns/jbi"
+ xmlns:csi="urn:csi" xmlns:ems="urn:ems">
+ <service-assembly>
+ <identification>
+ <name>ServiceAssembly_041207153211-0800_saId</name>
+ <description>Description of Service Assembly :
ServiceAssembly</description>
+ </identification>
+ <service-unit>
+ <identification>
+
<name>TransformationSU_041207152821-0800_suId</name>
+ <description>Description of Serviceunit:
TransformationSU</description>
+ </identification>
+ <target>
+
<artifacts-zip>TransformationSU.zip</artifacts-zip>
+
<component-name>SunTransformationEngine</component-name>
+ </target>
+ </service-unit>
+ <service-unit>
+ <identification>
+
<name>FileBindingSU_041207152212-0800_suId</name>
+ <description>Description of ServiceUnit:
FileBindingSU</description>
+ </identification>
+ <target>
+ <artifacts-zip>FileBindingSU.zip</artifacts-zip>
+ <component-name>SunFileBinding</component-name>
+ </target>
+ </service-unit>
+ <service-unit>
+ <identification>
+
<name>SoapBindingSU_041207152833-0800_suId</name>
+ <description>
+ Description of Service unit:
SoapBindingSU
+ </description>
+ </identification>
+ <target>
+ <artifacts-zip>SoapBindingSU.zip</artifacts-zip>
+ <component-name>SunSOAPBinding</component-name>
+ </target>
+ </service-unit>
+ <service-unit>
+ <identification>
+
<name>SequencingEngineSU_041207152507-0800_suId</name>
+ <description>Description of Serviceunit:
SequencingEngineSU</description>
+ </identification>
+ <target>
+
<artifacts-zip>SequencingEngineSU.zip</artifacts-zip>
+
<component-name>SunSequencingEngine</component-name>
+ </target>
+ </service-unit>
+ <connections>
+ <connection>
+ <consumer service-name="csi:csi-service"
+ endpoint-name="csi-email-endpoint" />
+ <provider service-name="ems:ems-service"
+ endpoint-name="ems-smtp-endpoint" />
+ </connection>
+ <connection>
+ <consumer service-name="csi:csi-service"
+ endpoint-name="csi-soap-email-endpoint"
/>
+ <provider service-name="ems:ems-service"
+ endpoint-name="ems-smtp-endpoint" />
+ </connection>
+ </connections>
+ </service-assembly>
+</jbi>
Added:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceUnit.xml
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceUnit.xml?rev=593226&view=auto
==============================================================================
---
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceUnit.xml
(added)
+++
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/serviceUnit.xml
Thu Nov 8 08:44:34 2007
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
+ <services xmlns:b="http://servicemix.apache.org/samples/bridge">
+ <consumes service-name="b:pipeline"/>
+ </services>
+</jbi>
Added:
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/sharedLibrary.xml
URL:
http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/sharedLibrary.xml?rev=593226&view=auto
==============================================================================
---
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/sharedLibrary.xml
(added)
+++
incubator/servicemix/branches/servicemix-4.0/jbi/deployer/src/test/resources/org/apache/servicemix/jbi/deployer/descriptor/sharedLibrary.xml
Thu Nov 8 08:44:34 2007
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ 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.
+
+-->
+<!-- jbi.xml file for a sample shared library. -->
+<jbi version="1.0" xmlns="http://java.sun.com/xml/ns/jbi"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+ <!-- identification information about this shared library-->
+ <shared-library>
+ <identification>
+ <name>TestSharedLibrary</name>
+ <description>This is a test shared
library.</description>
+ </identification>
+ <shared-library-class-path>
+ <path-element>.</path-element>
+ <path-element>test.jar</path-element>
+ </shared-library-class-path>
+ </shared-library>
+</jbi>