riftsaw SVN: r186 - in branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests: src/test/java/org/jboss/soa/bpel/tests/hello_world and 5 other directories.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-18 15:02:55 -0400 (Sun, 18 Oct 2009)
New Revision: 186
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELSimpleCorrelationTestCase.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/HelloGoodbye.bpel
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/HelloGoodbye.wsdl
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/bpel-deploy.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/build.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/goodbye_request1.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/goodbye_response1.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/hello_request1.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/hello_response1.xml
Modified:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELHelloWorldTestCase.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/build.xml
Log:
Added simple correlation quickstart to integration tests.
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml 2009-10-18 17:47:16 UTC (rev 185)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml 2009-10-18 19:02:55 UTC (rev 186)
@@ -84,6 +84,7 @@
<mkdir dir="target/tests"/>
- <ant antfile="src/test/resources/samples/Quickstart_bpel_hello_world/build.xml"></ant>
+ <ant antfile="src/test/resources/samples/Quickstart_bpel_hello_world/build.xml" />
+ <ant antfile="src/test/resources/samples/Quickstart_bpel_simple_correlation/build.xml" />
</target>
</project>
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELHelloWorldTestCase.java
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELHelloWorldTestCase.java 2009-10-18 17:47:16 UTC (rev 185)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELHelloWorldTestCase.java 2009-10-18 19:02:55 UTC (rev 186)
@@ -43,13 +43,9 @@
}
public void testSendHello() throws Exception {
- System.out.println("TEST SEND HELLO");
-
String result=sendMessage("hello_request1.xml",
"http://localhost:8080/bpel/processes/helloWorld");
assertMessage(result, "hello_response1.xml");
-
- System.out.println("FINISHED TEST SEND HELLO="+result);
}
}
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELSimpleCorrelationTestCase.java
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELSimpleCorrelationTestCase.java (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELSimpleCorrelationTestCase.java 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests.hello_world;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for running the Quickstart_bpel_simple_correlation sample.
+ */
+public class QuickstartBPELSimpleCorrelationTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_bpel_simple_correlation";
+
+ public QuickstartBPELSimpleCorrelationTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartBPELSimpleCorrelationTestCase.class,
+ TEST_NAME, "Quickstart_bpel_simple_correlation-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result1=sendMessage("hello_request1.xml",
+ "http://localhost:8080/bpel/processes/helloGoodbyeWorld");
+
+ assertMessage(result1, "hello_response1.xml");
+
+ String result2=sendMessage("goodbye_request1.xml",
+ "http://localhost:8080/bpel/processes/helloGoodbyeWorld");
+
+ assertMessage(result2, "goodbye_response1.xml");
+ }
+}
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/build.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/build.xml 2009-10-18 17:47:16 UTC (rev 185)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/build.xml 2009-10-18 19:02:55 UTC (rev 186)
@@ -20,7 +20,6 @@
<copy todir="${deploy.dir}/${ant.project.name}">
<fileset dir="${test.dir}/messages"/>
</copy>
-
</target>
<target name="undeploy">
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/HelloGoodbye.bpel
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/HelloGoodbye.bpel (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/HelloGoodbye.bpel 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,112 @@
+<!--
+ ~ 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.
+ -->
+<process name="HelloGoodbye"
+ targetNamespace="http://www.jboss.org/bpel/examples"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://www.jboss.org/bpel/examples"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="HelloGoodbye.wsdl"
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="helloGoodbyePartnerLink"
+ partnerLinkType="intf:HelloGoodbyePartnerLinkType"
+ myRole="me" />
+ </partnerLinks>
+
+ <correlationSets xmlns:cor="http://example.com/supplyCorrelation">
+ <correlationSet name="Session"
+ properties="intf:SessionID" />
+ </correlationSets>
+
+ <variables>
+ <variable name="myHelloVar" messageType="intf:HelloMessage"/>
+ <variable name="myGoodbyeVar" messageType="intf:GoodbyeMessage"/>
+ <variable name="mesgVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="helloGoodbyePartnerLink"
+ portType="intf:HelloGoodbyePortType"
+ operation="hello"
+ variable="myHelloVar"
+ createInstance="yes">
+ <correlations>
+ <correlation set="Session" initiate="yes" />
+ </correlations>
+ </receive>
+
+ <assign name="assignHelloMesg">
+ <copy>
+ <from variable="myHelloVar" part="Message"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' World')</from>
+ <to variable="myHelloVar" part="Message"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="helloGoodbyePartnerLink"
+ portType="intf:HelloGoodbyePortType"
+ operation="hello"
+ variable="myHelloVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </reply>
+ <receive
+ name="start"
+ partnerLink="helloGoodbyePartnerLink"
+ portType="intf:HelloGoodbyePortType"
+ operation="goodbye"
+ variable="myGoodbyeVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </receive>
+
+ <assign name="assignGoodbyeMesg">
+ <copy>
+ <from variable="myGoodbyeVar" part="Message"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' World')</from>
+ <to variable="myGoodbyeVar" part="Message"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="helloGoodbyePartnerLink"
+ portType="intf:HelloGoodbyePortType"
+ operation="goodbye"
+ variable="myGoodbyeVar">
+ <correlations>
+ <correlation set="Session" initiate="no" />
+ </correlations>
+ </reply>
+ </sequence>
+</process>
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/HelloGoodbye.wsdl
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/HelloGoodbye.wsdl (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/HelloGoodbye.wsdl 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,116 @@
+<?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.
+ -->
+<wsdl:definitions
+ targetNamespace="http://www.jboss.org/bpel/examples/wsdl"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://www.jboss.org/bpel/examples/wsdl"
+ xmlns:types="http://www.jboss.org/bpel/examples/xsd"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:vprop="http://docs.oasis-open.org/wsbpel/2.0/varprop"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:types>
+ <xsd:schema targetNamespace="http://www.jboss.org/bpel/examples/xsd">
+ <xsd:complexType name="SessionIdentity">
+ <xsd:sequence>
+ <xsd:element name="id" type="xsd:int" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="HelloMessage">
+ <wsdl:part name="ID" type="types:SessionIdentity"/>
+ <wsdl:part name="Message" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:message name="GoodbyeMessage">
+ <wsdl:part name="ID" type="types:SessionIdentity"/>
+ <wsdl:part name="Message" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloGoodbyePortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HelloMessage" name="HelloIn"/>
+ <wsdl:output message="tns:HelloMessage" name="HelloOut"/>
+ </wsdl:operation>
+ <wsdl:operation name="goodbye">
+ <wsdl:input message="tns:GoodbyeMessage" name="GoodbyeIn"/>
+ <wsdl:output message="tns:GoodbyeMessage" name="GoodbyeOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloGoodbyeSoapBinding" type="tns:HelloGoodbyePortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="hello">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ <wsdl:operation name="goodbye">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HelloGoodbyeService">
+ <wsdl:port name="HelloGoodbyePort" binding="tns:HelloGoodbyeSoapBinding">
+ <soap:address location="http://localhost:8080/bpel/processes/helloGoodbyeWorld"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="HelloGoodbyePartnerLinkType">
+ <plnk:role name="me" portType="tns:HelloGoodbyePortType"/>
+ <plnk:role name="you" portType="tns:HelloGoodbyePortType"/>
+ </plnk:partnerLinkType>
+
+ <vprop:property name="SessionID" type="xsd:int" />
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="tns:HelloMessage" part="ID">
+ <vprop:query>id</vprop:query>
+ </vprop:propertyAlias>
+
+ <vprop:propertyAlias propertyName="tns:SessionID"
+ messageType="tns:GoodbyeMessage" part="ID">
+ <vprop:query>id</vprop:query>
+ </vprop:propertyAlias>
+
+
+</wsdl:definitions>
+
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/bpel-deploy.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/bpel-deploy.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/bpel/bpel-deploy.xml 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,29 @@
+<!--
+ ~ 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.
+ -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+ xmlns:bpl="http://www.jboss.org/bpel/examples"
+ xmlns:intf="http://www.jboss.org/bpel/examples/wsdl">
+
+ <process name="bpl:HelloGoodbye">
+ <active>true</active>
+ <provide partnerLink="helloGoodbyePartnerLink">
+ <service name="intf:HelloGoodbyeService" port="HelloGoodbyePort"/>
+ </provide>
+ </process>
+</deploy>
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/build.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/build.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/build.xml 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,29 @@
+<project name="Quickstart_bpel_simple_correlation" default="deploy" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="version" value="1" />
+
+ <property name="deploy.dir" value="${basedir}/target/tests"/>
+ <property name="test.dir" value="${basedir}/src/test/resources/samples/${ant.project.name}"/>
+
+ <property name="sample.jar.name" value="${ant.project.name}-${version}.jar" />
+
+ <target name="deploy">
+ <echo>Deploy ${ant.project.name}</echo>
+ <mkdir dir="${deploy.dir}/${ant.project.name}" />
+ <jar basedir="${test.dir}/bpel" destfile="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+
+ <copy todir="${deploy.dir}/${ant.project.name}">
+ <fileset dir="${test.dir}/messages"/>
+ </copy>
+ </target>
+
+ <target name="undeploy">
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+</project>
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/goodbye_request1.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/goodbye_request1.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/goodbye_request1.xml 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:goodbye>
+ <ID>
+ <id>1</id>
+ </ID>
+ <Message>Goodbye</Message>
+ </wsdl:goodbye>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/goodbye_response1.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/goodbye_response1.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/goodbye_response1.xml 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,3 @@
+<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><odens:goodbyeResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl"><ID xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <id>1</id>
+ </ID><Message xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">Goodbye World</Message></odens:goodbyeResponse></soapenv:Body></soapenv:Envelope>
\ No newline at end of file
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/hello_request1.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/hello_request1.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/hello_request1.xml 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,11 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <ID>
+ <id>1</id>
+ </ID>
+ <Message>Hello</Message>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/hello_response1.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/hello_response1.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_simple_correlation/messages/hello_response1.xml 2009-10-18 19:02:55 UTC (rev 186)
@@ -0,0 +1,3 @@
+<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl"><ID xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <id>1</id>
+ </ID><Message xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">Hello World</Message></odens:helloResponse></soapenv:Body></soapenv:Envelope>
\ No newline at end of file
15 years, 2 months
riftsaw SVN: r185 - branches/IntegrationTests/RiftSaw-2.0-M1.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-18 13:47:16 -0400 (Sun, 18 Oct 2009)
New Revision: 185
Modified:
branches/IntegrationTests/RiftSaw-2.0-M1/pom.xml
Log:
Define profile to trigger integration tests.
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/pom.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/pom.xml 2009-10-18 16:58:00 UTC (rev 184)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/pom.xml 2009-10-18 17:47:16 UTC (rev 185)
@@ -41,6 +41,15 @@
<module>docs/docbook</module>
<module>distribution</module>
</modules>
+
+ <profiles>
+ <profile>
+ <id>integration</id>
+ <modules>
+ <module>integration-tests</module>
+ </modules>
+ </profile>
+ </profiles>
<properties>
<bpel-version>2.0-M1</bpel-version>
15 years, 2 months
riftsaw SVN: r184 - in branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests: src/test/resources and 1 other directory.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-18 12:58:00 -0400 (Sun, 18 Oct 2009)
New Revision: 184
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/deployment.properties
Modified:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml
Log:
Mechanism for installing a test version of the deployment properties file. The path to this file will be specified using a system property "riftsaw.test.deployment.properties".
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml 2009-10-18 16:45:45 UTC (rev 183)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml 2009-10-18 16:58:00 UTC (rev 184)
@@ -3,9 +3,14 @@
<property environment="env" />
<property name="riftsaw.engine.version" value="2.0-M1" />
+ <property file="${riftsaw.test.deployment.properties}" />
+
<target name="unpack-distribution">
<mkdir dir="${basedir}/../distribution/target/dist"/>
<unzip dest="${basedir}/../distribution/target/dist" src="${basedir}/../distribution/target/riftsaw-${riftsaw.engine.version}.zip"/>
+
+ <copy file="${riftsaw.test.deployment.properties}"
+ tofile="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install/deployment.properties" />
</target>
<target name="deploy-riftsaw" >
@@ -24,13 +29,13 @@
<java classname="org.jboss.Main"
fork="true" spawn="true"
- dir="${riftsaw.jboss.home}/server/default" >
+ dir="${org.jboss.esb.server.home}/server/default" >
<arg line="-c default"/>
<jvmarg value="-Xms128m"/>
<jvmarg value="-Xmx512m"/>
<jvmarg value="-XX:MaxPermSize=256m"/>
<classpath>
- <pathelement path="${riftsaw.jboss.home}/bin/run.jar"/>
+ <pathelement path="${org.jboss.esb.server.home}/bin/run.jar"/>
<pathelement path="${JAVA_HOME}/lib/tools.jar"/>
</classpath>
</java>
@@ -56,8 +61,8 @@
<java classname="org.jboss.Shutdown" fork="true" failonerror="false" resultproperty="shutdown.rc">
<arg line="-s jnp://localhost:1099 --shutdown"/>
<classpath>
- <pathelement path="${riftsaw.jboss.home}/bin/shutdown.jar"/>
- <pathelement path="${riftsaw.jboss.home}/client/jbossall-client.jar"/>
+ <pathelement path="${org.jboss.esb.server.home}/bin/shutdown.jar"/>
+ <pathelement path="${org.jboss.esb.server.home}/client/jbossall-client.jar"/>
<pathelement path="${JAVA_HOME}/lib/tools.jar"/>
</classpath>
</java>
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml 2009-10-18 16:45:45 UTC (rev 183)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml 2009-10-18 16:58:00 UTC (rev 184)
@@ -65,7 +65,6 @@
<property name="test_classpath" refid="maven.test.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<property name="project.version" value="${project.version}" />
- <property name="riftsaw.jboss.home" value="${riftsaw.test.dir}/${jboss.version}" />
<property name="dependency.bpel.deployer"
value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
<property name="dependency.bpel.engine"
@@ -107,7 +106,6 @@
<property name="test_classpath" refid="maven.test.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<property name="project.version" value="${project.version}" />
- <property name="riftsaw.jboss.home" value="${riftsaw.test.dir}/${jboss.version}" />
<property name="dependency.bpel.deployer"
value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
<property name="dependency.bpel.engine"
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/deployment.properties
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/deployment.properties (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/deployment.properties 2009-10-18 16:58:00 UTC (rev 184)
@@ -0,0 +1,19 @@
+######################################################################
+# JBossAS and JBossESB Configuration
+######################################################################
+# The Directory in Which JBoss AS is Installed
+# The absolute path to a directory in which a version of JBoss AS with
+# EJB3 has been installed.
+# This path should not include spaces.
+# Use of relative paths or paths with spaces will cause runtime errors
+# when deploying and executing the samples.
+# (e.g. /var/local/jboss-5.1.0.GA)
+org.jboss.esb.server.home=/home/gbrown/NotBackedUp/testing/riftsawIT/jboss-5.1.0.GA
+
+# The Configuration of JBoss AS to Use
+# (e.g. default)
+org.jboss.esb.server.config=default
+
+# The directory for JBossESB home
+# (e.g. /var/local/jbossesb-4.6.GA)
+org.jboss.esb.home=/home/gbrown/NotBackedUp/testing/riftsawIT/jbossesb-4.6.GA
15 years, 2 months
riftsaw SVN: r183 - in branches/ODE/ODE-1.x-fixes: scripts and 1 other directories.
by riftsaw-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2009-10-18 12:45:45 -0400 (Sun, 18 Oct 2009)
New Revision: 183
Added:
branches/ODE/ODE-1.x-fixes/scripts/
branches/ODE/ODE-1.x-fixes/scripts/build.properties
branches/ODE/ODE-1.x-fixes/scripts/build.xml
branches/ODE/ODE-1.x-fixes/scripts/maven-ant-tasks-2.0.10.jar
branches/ODE/ODE-1.x-fixes/scripts/pom/
branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-docs.pom
branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-jbi.pom
branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-sources.pom
branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-war.pom
branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-axis2-war.pom
branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-dao-hibernate-db.pom
branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-dao-jpa-ojpa-derby.pom
Log:
* RIFTSAW-61 add script for publishing ODE artifacts into jboss snapshot repo.
Added: branches/ODE/ODE-1.x-fixes/scripts/build.properties
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/build.properties (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/build.properties 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,3 @@
+local.repo=/opt/m2/riftsaw-repo
+username=
+password=
Added: branches/ODE/ODE-1.x-fixes/scripts/build.xml
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/build.xml (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/build.xml 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,76 @@
+<project name="riftsaw-snapshots" xmlns:artifact="urn:maven-artifact-ant" default="deploy">
+
+ <property file="build.properties" />
+
+ <property name="version" value="2.0-SNAPSHOT" />
+ <property name="jboss.snapshot.repo" value="dav:https://snapshots.jboss.org/maven2" />
+ <property name="riftsaw.packagename" value="org/jboss/soa/bpel" />
+
+ <property name="artifact.dir" value="${local.repo}/${riftsaw.packagename}" />
+
+ <path id="apache.maven.ant.tasks.classpath">
+ <pathelement path="maven-ant-tasks-2.0.10.jar"/>
+ </path>
+
+ <macrodef name="publish">
+ <attribute name="filename" default = "" />
+ <attribute name="filetype" default = "jar" />
+ <sequential>
+ <typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" classpathref="apache.maven.ant.tasks.classpath" />
+ <artifact:install-provider artifactId="wagon-webdav" version="1.0-beta-2"/>
+
+ <condition property="pom.file" value="${artifact.dir}/@{filename}/${version}/(a){filename}-${version}.pom">
+ <equals arg1="@{filetype}" arg2="jar" />
+ </condition>
+ <condition property="pom.file" value="pom/(a){filename}.pom">
+ <available file="pom/(a){filename}.pom"/>
+ </condition>
+ <artifact:pom id="pom-file" file = "${pom.file}" />
+
+ <echo>${pom.file}</echo>
+
+ <artifact:deploy file="${artifact.dir}/@{filename}/${version}/@{filename}-${version}.(a){filetype}">
+ <remoteRepository url="${jboss.snapshot.repo}">
+ <authentication username="${username}" password="${password}"/>
+ </remoteRepository>
+ <pom refid="pom-file"/>
+ </artifact:deploy>
+ </sequential>
+ </macrodef>
+
+ <target name="deploy">
+ <publish filename="jboss-riftsaw-docs" filetype="zip"/>
+ <publish filename="jboss-riftsaw-jbi" filetype="zip"/>
+ <publish filename="jboss-riftsaw-sources" filetype="zip" />
+ <publish filename="jboss-riftsaw-war" filetype="zip"/>
+ <publish filename="riftsaw-agents" />
+ <publish filename="riftsaw-axis2" />
+ <publish filename="riftsaw-axis-war" filetype="war"/>
+ <publish filename="riftsaw-bpel-api" />
+ <publish filename="riftsaw-bpel-api-jca" />
+ <publish filename="riftsaw-bpel-compiler" />
+ <publish filename="riftsaw-bpel-connector" />
+ <publish filename="riftsaw-bpel-dao" />
+ <publish filename="riftsaw-bpel-epr" />
+ <publish filename="riftsaw-bpel-obj" />
+ <publish filename="riftsaw-bpel-ql" />
+ <publish filename="riftsaw-bpel-runtime" />
+ <publish filename="riftsaw-bpel-schemas" />
+ <publish filename="riftsaw-bpel-scripts" />
+ <publish filename="riftsaw-bpel-store" />
+ <publish filename="riftsaw-bpel-test" />
+ <publish filename="riftsaw-dao-hibernate" />
+ <publish filename="riftsaw-dao-hibernate-db" filetype="zip" />
+ <publish filename="riftsaw-dao-jpa" />
+ <publish filename="riftsaw-dao-jpa-ojpa-derby" filetype="zip"/>
+ <publish filename="riftsaw-jacob" />
+ <publish filename="riftsaw-jacob-ap" />
+ <publish filename="riftsaw-jbi" />
+ <publish filename="riftsaw-jca-ra" />
+ <publish filename="riftsaw-jca-server" />
+ <publish filename="riftsaw-scheduler-simple" />
+ <publish filename="riftsaw-tools" />
+ <publish filename="riftsaw-utils" />
+ </target>
+
+</project>
Added: branches/ODE/ODE-1.x-fixes/scripts/maven-ant-tasks-2.0.10.jar
===================================================================
(Binary files differ)
Property changes on: branches/ODE/ODE-1.x-fixes/scripts/maven-ant-tasks-2.0.10.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-docs.pom
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-docs.pom (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-docs.pom 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.bpel</groupId>
+ <artifactId>jboss-riftsaw-docs</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>zip</packaging>
+</project>
Added: branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-jbi.pom
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-jbi.pom (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-jbi.pom 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.bpel</groupId>
+ <artifactId>jboss-riftsaw-jbi</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>zip</packaging>
+</project>
Added: branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-sources.pom
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-sources.pom (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-sources.pom 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.bpel</groupId>
+ <artifactId>jboss-riftsaw-sources</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>zip</packaging>
+</project>
Added: branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-war.pom
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-war.pom (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/pom/jboss-riftsaw-war.pom 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.bpel</groupId>
+ <artifactId>jboss-riftsaw-war</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+</project>
Added: branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-axis2-war.pom
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-axis2-war.pom (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-axis2-war.pom 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.bpel</groupId>
+ <artifactId>riftsaw-axis2-war</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>war</packaging>
+</project>
Added: branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-dao-hibernate-db.pom
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-dao-hibernate-db.pom (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-dao-hibernate-db.pom 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.bpel</groupId>
+ <artifactId>riftsaw-dao-hibernate-db</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>zip</packaging>
+</project>
Added: branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-dao-jpa-ojpa-derby.pom
===================================================================
--- branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-dao-jpa-ojpa-derby.pom (rev 0)
+++ branches/ODE/ODE-1.x-fixes/scripts/pom/riftsaw-dao-jpa-ojpa-derby.pom 2009-10-18 16:45:45 UTC (rev 183)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.bpel</groupId>
+ <artifactId>riftsaw-dao-jpa-ojpa-derby</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <packaging>zip</packaging>
+</project>
15 years, 2 months
riftsaw SVN: r182 - branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-18 08:07:23 -0400 (Sun, 18 Oct 2009)
New Revision: 182
Modified:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml
Log:
Simplified dependencies.
Modified: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml 2009-10-16 17:53:27 UTC (rev 181)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml 2009-10-18 12:07:23 UTC (rev 182)
@@ -11,7 +11,7 @@
<parent>
<groupId>org.jboss.soa</groupId>
<artifactId>bpel</artifactId>
- <version>2.0-SNAPSHOT</version>
+ <version>2.0-M1</version>
</parent>
<properties>
@@ -27,36 +27,6 @@
<version>3.8.1</version>
<scope>test</scope>
</dependency>
-
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>jbosssx</artifactId>
- <scope>test</scope>
- <version>${jboss.jbosssx.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.security</groupId>
- <artifactId>jboss-security-spi</artifactId>
- <scope>test</scope>
- <version>${jboss.jbosssx.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss</groupId>
- <artifactId>jbossxb</artifactId>
- <scope>test</scope>
- <version>1.0.0.SP2</version>
- </dependency>
- <dependency>
- <groupId>jboss.common</groupId>
- <artifactId>jboss-common</artifactId>
- <version>${jboss.common.version}</version>
- </dependency>
- <dependency>
- <groupId>org.jboss.integration</groupId>
- <artifactId>jboss-integration</artifactId>
- <version>5.1.0.GA</version>
- </dependency>
-
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
@@ -70,55 +40,12 @@
<scope>test</scope>
</dependency>
<dependency>
- <groupId>org.jboss.logging</groupId>
- <artifactId>jboss-logging-spi</artifactId>
- <version>2.1.0.GA</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.jboss.rstmp</groupId>
- <artifactId>jboss-client</artifactId>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-client</artifactId>
<version>5.1.0.GA</version>
+ <type>pom</type>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.jboss.rstmp</groupId>
- <artifactId>jboss-serialization</artifactId>
- <version>5.1.0.GA</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.rstmp</groupId>
- <artifactId>jboss-common-core</artifactId>
- <version>5.1.0.GA</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.rstmp</groupId>
- <artifactId>jboss-javaee</artifactId>
- <version>5.1.0.GA</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.rstmp</groupId>
- <artifactId>jboss-remoting</artifactId>
- <version>5.1.0.GA</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.rstmp</groupId>
- <artifactId>jmx-invoker-adaptor-client</artifactId>
- <version>5.1.0.GA</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.jboss.rstmp</groupId>
- <artifactId>jnp-client</artifactId>
- <version>5.1.0.GA</version>
- <scope>test</scope>
- </dependency>
-
</dependencies>
<build>
@@ -138,7 +65,7 @@
<property name="test_classpath" refid="maven.test.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<property name="project.version" value="${project.version}" />
- <property name="riftsaw.jboss.home" value="${riftsaw.test.dir}/${jboss.version}" />
+ <property name="riftsaw.jboss.home" value="${riftsaw.test.dir}/${jboss.version}" />
<property name="dependency.bpel.deployer"
value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
<property name="dependency.bpel.engine"
@@ -180,7 +107,7 @@
<property name="test_classpath" refid="maven.test.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<property name="project.version" value="${project.version}" />
- <property name="riftsaw.jboss.home" value="${riftsaw.test.dir}/${jboss.version}" />
+ <property name="riftsaw.jboss.home" value="${riftsaw.test.dir}/${jboss.version}" />
<property name="dependency.bpel.deployer"
value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
<property name="dependency.bpel.engine"
15 years, 2 months
riftsaw SVN: r181 - in branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests: src and 14 other directories.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-16 13:53:27 -0400 (Fri, 16 Oct 2009)
New Revision: 181
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/main/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/main/java/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/main/resources/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTest.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestHelper.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestSetup.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/TestDeployer.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/TestDeployerJBoss.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELHelloWorldTestCase.java
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/HelloWorld.bpel
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/HelloWorld.wsdl
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/bpel-deploy.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/build.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/hello_request1.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/hello_response1.xml
Log:
Initial integration test structure - still needs alot of work. AS server location needs to be manually setup in the distributon/src/main/release/install/deployment.properties and the system prop riftsaw.test.dir needs to be supplied as the parent folder containing the AS and ESB environments. It currently deploys the build, starts the server, and then runs a single test based on the hello world example, before stopping the server and undeploying riftsaw. Need to also download the AS and ESB distributions before it all starts.
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTest.java
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTest.java (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTest.java 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,126 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import javax.management.MBeanServerConnection;
+import javax.naming.NamingException;
+
+import junit.framework.TestCase;
+
+import org.apache.commons.httpclient.HttpClient;
+import org.apache.commons.httpclient.methods.PostMethod;
+import org.apache.commons.httpclient.methods.StringRequestEntity;
+import org.jboss.logging.Logger;
+
+/**
+ * Base class for RiftSaw test cases. Based on
+ * equivalent class in JBossWS written by
+ * Thomas Diesler and Richard Opalka.
+ *
+ */
+public abstract class RiftSawTest extends TestCase {
+
+ protected static Logger log = Logger.getLogger(RiftSawTest.class.getName());
+ private RiftSawTestHelper delegate = new RiftSawTestHelper();
+
+ private String m_testSuiteName=null;
+
+ public RiftSawTest(String name) {
+ super(name);
+
+ m_testSuiteName = name;
+ }
+
+ public String getTestSuiteName() {
+ return(m_testSuiteName);
+ }
+
+ public MBeanServerConnection getServer() throws NamingException {
+ return RiftSawTestHelper.getServer();
+ }
+
+ /** Deploy the given archive
+ */
+ public void deploy(String archive) throws Exception {
+ delegate.deploy(getTestSuiteName(), archive);
+ }
+
+ /** Undeploy the given archive
+ */
+ public void undeploy(String archive) throws Exception {
+ delegate.undeploy(getTestSuiteName(), archive);
+ }
+
+ public File getTestFile(String filename) {
+ return delegate.getTestFile(getTestSuiteName(), filename);
+ }
+
+ public URL getTestFileURL(String filename) throws MalformedURLException {
+ return delegate.getTestFileURL(getTestSuiteName(), filename);
+ }
+
+ protected void assertMessage(String message, String mesgFile) throws Exception {
+ String mesgpath=System.getProperty("test.dir")+java.io.File.separator+getTestSuiteName()+
+ java.io.File.separator+mesgFile;
+
+ java.io.FileInputStream is=new java.io.FileInputStream(mesgpath);
+ byte[] b=new byte[is.available()];
+ is.read(b);
+ is.close();
+
+ String comparison=new String(b).trim();
+ message = message.trim();
+
+ if (!comparison.equals(message)) {
+ fail("Message in file '"+mesgFile+"' has content ["+comparison+
+ "] which is not the same as ["+message+"], lengths "+comparison.length()+" to "+message.length());
+ }
+ }
+
+ protected String sendMessage(String mesgFile, String url) throws Exception {
+ String mesgpath=System.getProperty("test.dir")+java.io.File.separator+getTestSuiteName()+
+ java.io.File.separator+mesgFile;
+
+ java.io.FileInputStream is=new java.io.FileInputStream(mesgpath);
+ byte[] b=new byte[is.available()];
+ is.read(b);
+ is.close();
+
+ java.net.URL u=new java.net.URL(url);
+ String soapAction="";
+ String request=new String(b);
+
+ HttpClient httpClient = new HttpClient();
+ PostMethod httpPostMethod = new PostMethod(u.toExternalForm());
+ httpPostMethod.setRequestHeader("SOAPAction", "\"" + soapAction + "\"");
+ httpPostMethod.setRequestHeader("Content-Type", "text/xml");
+ httpPostMethod.setRequestEntity(new StringRequestEntity(request));
+ httpClient.executeMethod(httpPostMethod);
+ String result=httpPostMethod.getResponseBodyAsString();
+
+ return(result);
+ }
+}
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestHelper.java
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestHelper.java (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestHelper.java 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,109 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.Hashtable;
+
+import javax.management.MBeanServerConnection;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+/**
+ * A RiftSaw test helper that deals with test deployment/undeployment, etc.
+ * Based on JBossWS equivalent class by Thomas Diesler and Richard Opalka.
+ *
+ */
+public class RiftSawTestHelper {
+ private static final String SYSPROP_TEST_ARCHIVE_DIRECTORY = "test.dir";
+
+ private static MBeanServerConnection server;
+ private static String testArchiveDir;
+
+ /** Deploy the given archive
+ */
+ public void deploy(String testName, String archive) throws Exception {
+ URL archiveURL = getTestFile(testName, archive).toURL();
+ getDeployer().deploy(archiveURL);
+ }
+
+ /** Undeploy the given archive
+ */
+ public void undeploy(String testName, String archive) throws Exception {
+ URL archiveURL = getTestFile(testName, archive).toURL();
+ getDeployer().undeploy(archiveURL);
+ }
+
+ public void undeploy(String testName, URL archiveURL) throws Exception {
+ getDeployer().undeploy(archiveURL);
+ }
+
+ @SuppressWarnings("unchecked")
+ public static MBeanServerConnection getServer() {
+ if (server == null)
+ {
+ Hashtable jndiEnv = null;
+ try
+ {
+ InitialContext iniCtx = new InitialContext();
+ jndiEnv = iniCtx.getEnvironment();
+ server = (MBeanServerConnection)iniCtx.lookup("jmx/invoker/RMIAdaptor");
+ }
+ catch (NamingException ex)
+ {
+ throw new RuntimeException("Cannot obtain MBeanServerConnection using jndi props: " + jndiEnv, ex);
+ }
+ }
+ return server;
+ }
+
+ private TestDeployer getDeployer() {
+ return new TestDeployerJBoss(getServer());
+ }
+
+ /** Try to discover the URL for the deployment archive */
+ public URL getTestFileURL(String testName, String archive) throws MalformedURLException
+ {
+ return getTestFile(testName, archive).toURL();
+ }
+
+ /** Try to discover the File for the deployment archive */
+ public File getTestFile(String testName, String archive) {
+ File file = new File(getTestArchiveDir() + java.io.File.separator+
+ testName+ java.io.File.separator + archive);
+ if (file.exists())
+ return file;
+
+ String notSet = (getTestArchiveDir() == null ? " System property '" + SYSPROP_TEST_ARCHIVE_DIRECTORY + "' not set." : "");
+ throw new IllegalArgumentException("Cannot obtain '" + getTestArchiveDir() + "/" + archive + "'." + notSet);
+ }
+
+ public static String getTestArchiveDir() {
+ if (testArchiveDir == null)
+ testArchiveDir = System.getProperty(SYSPROP_TEST_ARCHIVE_DIRECTORY);
+
+ return testArchiveDir;
+ }
+
+}
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestSetup.java
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestSetup.java (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/RiftSawTestSetup.java 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,195 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests;
+
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.net.URLClassLoader;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+
+import javax.management.MBeanServerConnection;
+import javax.naming.NamingException;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.logging.Logger;
+
+/**
+ * A test setup that deploys/undeploys archives
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 14-Oct-2004
+ */
+public class RiftSawTestSetup extends TestSetup
+{
+ // provide logging
+ private static Logger log = Logger.getLogger(RiftSawTestSetup.class);
+
+ private RiftSawTestHelper delegate = new RiftSawTestHelper();
+ private String[] archives = new String[0];
+ private ClassLoader originalClassLoader;
+ private String m_testName=null;
+
+ public RiftSawTestSetup(Class<?> testClass, String testName, String archiveList) {
+ super(new TestSuite(testClass));
+ getArchiveArray(archiveList);
+ m_testName = testName;
+ }
+
+ public RiftSawTestSetup(Test test, String archiveList)
+ {
+ super(test);
+ getArchiveArray(archiveList);
+ }
+
+ public RiftSawTestSetup(Test test)
+ {
+ super(test);
+ }
+
+ public File getArchiveFile(String archive)
+ {
+ return delegate.getTestFile(m_testName, archive);
+ }
+
+ public URL getArchiveURL(String archive) throws MalformedURLException
+ {
+ return delegate.getTestFile(m_testName, archive).toURL();
+ }
+
+ private void getArchiveArray(String archiveList)
+ {
+ if (archiveList != null)
+ {
+ StringTokenizer st = new StringTokenizer(archiveList, ", ");
+ archives = new String[st.countTokens()];
+
+ for (int i = 0; i < archives.length; i++)
+ archives[i] = st.nextToken();
+ }
+ }
+
+ protected void setUp() throws Exception {
+
+ List<URL> clientJars = new ArrayList<URL>();
+ for (int i = 0; i < archives.length; i++)
+ {
+ String archive = archives[i];
+ try
+ {
+ delegate.deploy(m_testName, archive);
+ }
+ catch (Exception ex)
+ {
+ ex.printStackTrace();
+ delegate.undeploy(m_testName, archive);
+ }
+
+ if (archive.endsWith("-client.jar"))
+ {
+ URL archiveURL = getArchiveURL(archive);
+ clientJars.add(archiveURL);
+ }
+ }
+
+ ClassLoader parent = Thread.currentThread().getContextClassLoader();
+ originalClassLoader = parent;
+ // add client jars to the class loader
+ if (!clientJars.isEmpty())
+ {
+ URL[] urls = new URL[clientJars.size()];
+ for (int i = 0; i < clientJars.size(); i++)
+ {
+ urls[i] = clientJars.get(i);
+ }
+ URLClassLoader cl = new URLClassLoader(urls, parent);
+ Thread.currentThread().setContextClassLoader(cl);
+ }
+
+ // Temporary wait until able to sync detect deployed ok
+ try {
+ synchronized(this) {
+ wait(10000);
+ }
+ } catch(Exception e) {
+ e.printStackTrace();
+ }
+
+ }
+
+ protected void tearDown() throws Exception
+ {
+
+ // Temporarily move the deployed files - this is to ensure the server actually undeploys
+ // the archive
+ java.util.Map<java.io.File, java.io.File> mapping=new java.util.HashMap<java.io.File, java.io.File>();
+
+ try
+ {
+ for (int i = 0; i < archives.length; i++)
+ {
+ String archive = archives[archives.length - i - 1];
+
+ java.io.File file=delegate.getTestFile(m_testName, archive);
+
+ URL archiveURL = file.toURL();
+
+ java.io.File newfile=new java.io.File(file.getParentFile(), "_"+file.getName());
+ file.renameTo(newfile);
+
+ mapping.put(newfile, file);
+
+ delegate.undeploy(m_testName, archiveURL);
+
+ }
+ }
+ finally
+ {
+ Thread.currentThread().setContextClassLoader(originalClassLoader);
+ }
+
+ // Temporary wait until able to sync detect deployed ok
+ try {
+ synchronized(this) {
+ wait(3000);
+ }
+ } catch(Exception e) {
+ e.printStackTrace();
+ }
+
+ // Move files back to original location
+ for (java.io.File file : mapping.keySet()) {
+ java.io.File newfile=mapping.get(file);
+ file.renameTo(newfile);
+ }
+ }
+
+ public MBeanServerConnection getServer() throws NamingException
+ {
+ return RiftSawTestHelper.getServer();
+ }
+}
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/TestDeployer.java
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/TestDeployer.java (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/TestDeployer.java 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests;
+
+import java.net.URL;
+
+/**
+ * RiftSaw test deployer
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 16-May-2006
+ */
+public interface TestDeployer {
+
+ /** Deploy the given archive
+ */
+ void deploy(URL archive) throws Exception;
+
+ /** Undeploy the given archive
+ */
+ void undeploy(URL archive) throws Exception;
+}
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/TestDeployerJBoss.java
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/TestDeployerJBoss.java (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/TestDeployerJBoss.java 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,67 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests;
+
+import java.io.Serializable;
+import java.net.URL;
+import java.security.Principal;
+
+import javax.management.MBeanServerConnection;
+import javax.management.ObjectName;
+
+/*
+import org.jboss.wsf.spi.invocation.SecurityAdaptor;
+import org.jboss.wsf.spi.invocation.SecurityAdaptorFactory;
+import org.jboss.wsf.spi.SPIProvider;
+import org.jboss.wsf.spi.SPIProviderResolver;
+*/
+
+/**
+ * A JBossWS test helper that deals with test deployment/undeployment, etc.
+ *
+ * @author Thomas.Diesler(a)jboss.org
+ * @since 14-Oct-2004
+ */
+public class TestDeployerJBoss implements TestDeployer {
+ private static final String MAIN_DEPLOYER = "jboss.system:service=MainDeployer";
+
+ private MBeanServerConnection server;
+
+ public TestDeployerJBoss(MBeanServerConnection server) {
+ this.server = server;
+ }
+
+ public void deploy(URL url) throws Exception
+ {
+ invokeMainDeployer("deploy", url);
+ }
+
+ public void undeploy(URL url) throws Exception
+ {
+ invokeMainDeployer("undeploy", url);
+ }
+
+ private void invokeMainDeployer(String methodName, URL url) throws Exception {
+ //System.out.println("INVOKE MAIN DEPLOYER: "+methodName+" URL="+url);
+ server.invoke(new ObjectName(MAIN_DEPLOYER), methodName, new Object[] { url }, new String[] { "java.net.URL" });
+ }
+}
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELHelloWorldTestCase.java
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELHelloWorldTestCase.java (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/java/org/jboss/soa/bpel/tests/hello_world/QuickstartBPELHelloWorldTestCase.java 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.soa.bpel.tests.hello_world;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for running the Quickstart_bpel_hello_world sample.
+ */
+public class QuickstartBPELHelloWorldTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_bpel_hello_world";
+
+ public QuickstartBPELHelloWorldTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartBPELHelloWorldTestCase.class,
+ TEST_NAME, "Quickstart_bpel_hello_world-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ System.out.println("TEST SEND HELLO");
+
+ String result=sendMessage("hello_request1.xml",
+ "http://localhost:8080/bpel/processes/helloWorld");
+
+ assertMessage(result, "hello_response1.xml");
+
+ System.out.println("FINISHED TEST SEND HELLO="+result);
+ }
+}
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/HelloWorld.bpel
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/HelloWorld.bpel (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/HelloWorld.bpel 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,68 @@
+<!--
+ ~ 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.
+ -->
+<process name="HelloWorld"
+ targetNamespace="http://www.jboss.org/bpel/examples"
+ xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
+ xmlns:tns="http://www.jboss.org/bpel/examples"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:intf="http://www.jboss.org/bpel/examples/wsdl"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="HelloWorld.wsdl"
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ importType="http://schemas.xmlsoap.org/wsdl/" />
+
+ <partnerLinks>
+ <partnerLink name="helloPartnerLink"
+ partnerLinkType="intf:HelloPartnerLinkType"
+ myRole="me" />
+ </partnerLinks>
+
+ <variables>
+ <variable name="myVar" messageType="intf:HelloMessage"/>
+ <variable name="mesgVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="helloPartnerLink"
+ portType="intf:HelloPortType"
+ operation="hello"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assignHelloMesg">
+ <copy>
+ <from variable="myVar" part="TestPart"/>
+ <to variable="mesgVar"/>
+ </copy>
+ <copy>
+ <from>concat($mesgVar,' World')</from>
+ <to variable="myVar" part="TestPart"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="helloPartnerLink"
+ portType="intf:HelloPortType"
+ operation="hello"
+ variable="myVar"/>
+ </sequence>
+</process>
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/HelloWorld.wsdl
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/HelloWorld.wsdl (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/HelloWorld.wsdl 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,67 @@
+<?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.
+ -->
+<wsdl:definitions
+ targetNamespace="http://www.jboss.org/bpel/examples/wsdl"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://www.jboss.org/bpel/examples/wsdl"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype">
+
+ <wsdl:message name="HelloMessage">
+ <wsdl:part name="TestPart" type="xsd:string"/>
+ </wsdl:message>
+
+ <wsdl:portType name="HelloPortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+ <wsdl:output message="tns:HelloMessage" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="HelloSoapBinding" type="tns:HelloPortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="hello">
+ <soap:operation soapAction="" style="rpc"/>
+ <wsdl:input>
+ <soap:body
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body
+ namespace="http://www.jboss.org/bpel/examples/wsdl"
+ use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="HelloService">
+ <wsdl:port name="HelloPort" binding="tns:HelloSoapBinding">
+ <soap:address location="http://localhost:8080/bpel/processes/helloWorld"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="HelloPartnerLinkType">
+ <plnk:role name="me" portType="tns:HelloPortType"/>
+ <plnk:role name="you" portType="tns:HelloPortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions>
+
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/bpel-deploy.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/bpel-deploy.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/bpel/bpel-deploy.xml 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,30 @@
+<!--
+ ~ 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.
+ -->
+<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
+ xmlns:bpl="http://www.jboss.org/bpel/examples"
+ xmlns:intf="http://www.jboss.org/bpel/examples/wsdl">
+
+
+ <process name="bpl:HelloWorld">
+ <active>true</active>
+ <provide partnerLink="helloPartnerLink">
+ <service name="intf:HelloService" port="HelloPort"/>
+ </provide>
+ </process>
+</deploy>
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/build.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/build.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/build.xml 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,31 @@
+<project name="Quickstart_bpel_hello_world" default="deploy" basedir=".">
+
+ <description>
+ ${ant.project.name}
+ ${line.separator}
+ </description>
+
+ <property name="version" value="1" />
+
+ <property name="deploy.dir" value="${basedir}/target/tests"/>
+ <property name="test.dir" value="${basedir}/src/test/resources/samples/${ant.project.name}" />
+
+ <property name="sample.jar.name" value="${ant.project.name}-${version}.jar" />
+
+ <target name="deploy">
+ <echo>Deploy ${ant.project.name}</echo>
+ <mkdir dir="${deploy.dir}/${ant.project.name}" />
+ <jar basedir="${test.dir}/bpel" destfile="${deploy.dir}/${ant.project.name}/${sample.jar.name}" />
+
+ <copy todir="${deploy.dir}/${ant.project.name}">
+ <fileset dir="${test.dir}/messages"/>
+ </copy>
+
+ </target>
+
+ <target name="undeploy">
+ <echo>Undeploy ${ant.project.name}</echo>
+ <delete file="${deploy.dir}/${sample.jar.name}" />
+ </target>
+
+</project>
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/hello_request1.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/hello_request1.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/hello_request1.xml 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1,8 @@
+<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <wsdl:hello>
+ <TestPart>Hello</TestPart>
+ </wsdl:hello>
+ </soapenv:Body>
+</soapenv:Envelope>
\ No newline at end of file
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/hello_response1.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/hello_response1.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/src/test/resources/samples/Quickstart_bpel_hello_world/messages/hello_response1.xml 2009-10-16 17:53:27 UTC (rev 181)
@@ -0,0 +1 @@
+<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><odens:helloResponse xmlns:odens="http://www.jboss.org/bpel/examples/wsdl"><TestPart xmlns:wsdl="http://www.jboss.org/bpel/examples/wsdl">Hello World</TestPart></odens:helloResponse></soapenv:Body></soapenv:Envelope>
\ No newline at end of file
15 years, 2 months
riftsaw SVN: r180 - in branches/IntegrationTests/RiftSaw-2.0-M1: integration-tests and 1 other directory.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-16 13:51:15 -0400 (Fri, 16 Oct 2009)
New Revision: 180
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml
branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml
Log:
Initial integration test structure - still needs alot of work. AS server location needs to be manually setup in the distributon/src/main/release/install/deployment.properties and the system prop riftsaw.test.dir needs to be supplied as the parent folder containing the AS and ESB environments. It currently deploys the build, starts the server, and then runs a single test based on the hello world example, before stopping the server and undeploying riftsaw. Need to also download the AS and ESB distributions before it all starts.
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/build.xml 2009-10-16 17:51:15 UTC (rev 180)
@@ -0,0 +1,84 @@
+<project name="integration-tests" basedir=".">
+
+ <property environment="env" />
+ <property name="riftsaw.engine.version" value="2.0-M1" />
+
+ <target name="unpack-distribution">
+ <mkdir dir="${basedir}/../distribution/target/dist"/>
+ <unzip dest="${basedir}/../distribution/target/dist" src="${basedir}/../distribution/target/riftsaw-${riftsaw.engine.version}.zip"/>
+ </target>
+
+ <target name="deploy-riftsaw" >
+ <ant antfile="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install/build.xml"
+ target="deploy"
+ dir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install" />
+ </target>
+
+ <target name="undeploy-riftsaw" >
+ <ant antfile="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install/build.xml"
+ target="undeploy"
+ dir="${basedir}/../distribution/target/dist/riftsaw-${riftsaw.engine.version}/install" />
+ </target>
+
+ <target name="start-server" >
+
+ <java classname="org.jboss.Main"
+ fork="true" spawn="true"
+ dir="${riftsaw.jboss.home}/server/default" >
+ <arg line="-c default"/>
+ <jvmarg value="-Xms128m"/>
+ <jvmarg value="-Xmx512m"/>
+ <jvmarg value="-XX:MaxPermSize=256m"/>
+ <classpath>
+ <pathelement path="${riftsaw.jboss.home}/bin/run.jar"/>
+ <pathelement path="${JAVA_HOME}/lib/tools.jar"/>
+ </classpath>
+ </java>
+
+ <echo>Starting the server</echo>
+
+ <waitfor maxwait="2" maxwaitunit="minute">
+ <socket server="localhost" port="1099"/>
+ </waitfor>
+
+ <echo>JNP port detected, just waiting for 1 min 30 secs to ensure server started</echo>
+
+ <sleep minutes="1" seconds="30" />
+
+ <echo>Server has started</echo>
+
+ </target>
+
+ <target name="stop-server" >
+ <echo>Stopping the server</echo>
+ <echo>Server is at ${riftsaw.jboss.home}</echo>
+
+ <java classname="org.jboss.Shutdown" fork="true" failonerror="false" resultproperty="shutdown.rc">
+ <arg line="-s jnp://localhost:1099 --shutdown"/>
+ <classpath>
+ <pathelement path="${riftsaw.jboss.home}/bin/shutdown.jar"/>
+ <pathelement path="${riftsaw.jboss.home}/client/jbossall-client.jar"/>
+ <pathelement path="${JAVA_HOME}/lib/tools.jar"/>
+ </classpath>
+ </java>
+ <echo>Shutdown rc = ${shutdown.rc}</echo>
+ <condition property="shutdown.okay">
+ <equals arg1="${shutdown.rc}" arg2="0"/>
+ </condition>
+ <fail unless="shutdown.okay" message="Unable to shut down JBoss (maybe it hasn't fully started yet?)."/>
+ <echo>Waiting for JNP to stop listening...</echo>
+ <waitfor maxwait="2" maxwaitunit="minute">
+ <not>
+ <socket server="localhost" port="1099"/>
+ </not>
+ </waitfor>
+ </target>
+
+ <target name="package-tests" >
+ <echo>Package tests...</echo>
+
+ <mkdir dir="target/tests"/>
+
+ <ant antfile="src/test/resources/samples/Quickstart_bpel_hello_world/build.xml"></ant>
+ </target>
+</project>
Added: branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml
===================================================================
--- branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml (rev 0)
+++ branches/IntegrationTests/RiftSaw-2.0-M1/integration-tests/pom.xml 2009-10-16 17:51:15 UTC (rev 180)
@@ -0,0 +1,273 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.soa.bpel</groupId>
+ <artifactId>integration-tests</artifactId>
+ <packaging>pom</packaging>
+ <version>2.0-SNAPSHOT</version>
+ <name>RiftSaw::Integration-Tests</name>
+
+ <parent>
+ <groupId>org.jboss.soa</groupId>
+ <artifactId>bpel</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </parent>
+
+ <properties>
+ <jboss.jbosssx.version>2.0.2.SP3</jboss.jbosssx.version>
+ <jboss.common.version>1.2.1.GA</jboss.common.version>
+ <jboss.version>jboss-5.1.0.GA</jboss.version>
+ </properties>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jbosssx</artifactId>
+ <scope>test</scope>
+ <version>${jboss.jbosssx.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.security</groupId>
+ <artifactId>jboss-security-spi</artifactId>
+ <scope>test</scope>
+ <version>${jboss.jbosssx.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss</groupId>
+ <artifactId>jbossxb</artifactId>
+ <scope>test</scope>
+ <version>1.0.0.SP2</version>
+ </dependency>
+ <dependency>
+ <groupId>jboss.common</groupId>
+ <artifactId>jboss-common</artifactId>
+ <version>${jboss.common.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.integration</groupId>
+ <artifactId>jboss-integration</artifactId>
+ <version>5.1.0.GA</version>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-httpclient</groupId>
+ <artifactId>commons-httpclient</artifactId>
+ <version>3.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>concurrent</groupId>
+ <artifactId>concurrent</artifactId>
+ <version>1.3.4</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ <version>2.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.rstmp</groupId>
+ <artifactId>jboss-client</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.rstmp</groupId>
+ <artifactId>jboss-serialization</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.rstmp</groupId>
+ <artifactId>jboss-common-core</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.rstmp</groupId>
+ <artifactId>jboss-javaee</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.rstmp</groupId>
+ <artifactId>jboss-remoting</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.rstmp</groupId>
+ <artifactId>jmx-invoker-adaptor-client</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.rstmp</groupId>
+ <artifactId>jnp-client</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.3</version>
+ <executions>
+ <execution>
+ <id>deploy-riftsaw</id>
+ <phase>pre-integration-test</phase>
+ <configuration>
+ <tasks>
+ <property name="compile_classpath" refid="maven.compile.classpath" />
+ <property name="runtime_classpath" refid="maven.runtime.classpath" />
+ <property name="test_classpath" refid="maven.test.classpath" />
+ <property name="plugin_classpath" refid="maven.plugin.classpath" />
+ <property name="project.version" value="${project.version}" />
+ <property name="riftsaw.jboss.home" value="${riftsaw.test.dir}/${jboss.version}" />
+ <property name="dependency.bpel.deployer"
+ value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
+ <property name="dependency.bpel.engine"
+ value="${maven.dependency.org.jboss.soa.bpel.runtime.engine.jar.path}" />
+ <property name="dependency.bpel.jb-bpel-store"
+ value="${maven.dependency.org.jboss.soa.bpel.runtime.jb-bpel-store.jar.path}" />
+ <ant antfile="${basedir}/build.xml">
+ <target name="unpack-distribution" />
+ </ant>
+
+ <!-- Cleanup test environment in case of previous failure -->
+ <!--
+ <ant antfile="${basedir}/build.xml">
+ <target name="undeploy-riftsaw" />
+ </ant>
+ -->
+ <ant antfile="${basedir}/build.xml">
+ <target name="deploy-riftsaw" />
+ </ant>
+ <ant antfile="${basedir}/build.xml">
+ <target name="start-server" />
+ </ant>
+ <ant antfile="${basedir}/build.xml">
+ <target name="package-tests" />
+ </ant>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>undeploy-riftsaw</id>
+ <phase>post-integration-test</phase>
+ <configuration>
+ <tasks>
+ <property name="compile_classpath" refid="maven.compile.classpath" />
+ <property name="runtime_classpath" refid="maven.runtime.classpath" />
+ <property name="test_classpath" refid="maven.test.classpath" />
+ <property name="plugin_classpath" refid="maven.plugin.classpath" />
+ <property name="project.version" value="${project.version}" />
+ <property name="riftsaw.jboss.home" value="${riftsaw.test.dir}/${jboss.version}" />
+ <property name="dependency.bpel.deployer"
+ value="${maven.dependency.org.jboss.soa.bpel.runtime.deployer.jar.path}" />
+ <property name="dependency.bpel.engine"
+ value="${maven.dependency.org.jboss.soa.bpel.runtime.engine.jar.path}" />
+ <property name="dependency.bpel.jb-bpel-store"
+ value="${maven.dependency.org.jboss.soa.bpel.runtime.jb-bpel-store.jar.path}" />
+ <ant antfile="${basedir}/build.xml">
+ <target name="stop-server" />
+ </ant>
+ <ant antfile="${basedir}/build.xml">
+ <target name="undeploy-riftsaw" />
+ </ant>
+ <!--
+ -->
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>compiler-it</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>testCompile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <systemProperties>
+ <property>
+ <name>test.dir</name>
+ <value>${basedir}/target/tests</value>
+ </property>
+ <property>
+ <name>java.naming.factory.initial</name>
+ <value>org.jnp.interfaces.NamingContextFactory</value>
+ </property>
+ <property>
+ <name>java.naming.factory.url.pkgs</name>
+ <value>org.jboss.naming:org.jnp.interfaces</value>
+ </property>
+ <property>
+ <name>java.naming.provider.url</name>
+ <value>jnp://localhost:1099</value>
+ </property>
+ <property>
+ <name>java.rmi.server.ignoreStubClasses</name>
+ <value>true</value>
+ </property>
+ </systemProperties>
+ <testFailureIgnore>true</testFailureIgnore>
+ <includes>
+ <include>**/*TestCase.java</include>
+ <include>**/*Test.java</include>
+ </includes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>test-riftsaw</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
+
15 years, 2 months
riftsaw SVN: r179 - branches/IntegrationTests.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-16 12:54:37 -0400 (Fri, 16 Oct 2009)
New Revision: 179
Added:
branches/IntegrationTests/RiftSaw-2.0-M1/
Log:
Copy of RiftSaw-2.0-M1 branch, to be enhanced with integration tests.
Copied: branches/IntegrationTests/RiftSaw-2.0-M1 (from rev 178, branches/RiftSaw-2.0-M1)
15 years, 2 months
riftsaw SVN: r178 - branches.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-16 12:52:48 -0400 (Fri, 16 Oct 2009)
New Revision: 178
Added:
branches/IntegrationTests/
Log:
15 years, 2 months
riftsaw SVN: r177 - /.
by riftsaw-commits@lists.jboss.org
Author: objectiser
Date: 2009-10-16 12:51:15 -0400 (Fri, 16 Oct 2009)
New Revision: 177
Removed:
gbrown/
Log:
No longer required
15 years, 2 months