Author: objectiser
Date: 2010-10-06 14:42:15 -0400 (Wed, 06 Oct 2010)
New Revision: 1023
Added:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELLoanApprovalTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELLoanFaultTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartSimpleESBProxyInvoke2TestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartSimpleESBProxyInvokeTestCase.java
Removed:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanApprovalTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanFaultTestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvokeTestCase.java
Modified:
trunk/integration-tests/pom.xml
Log:
RIFTSAW-170 - separate out ESB tests so integration tests can be performed when ESB is not
installed.
Modified: trunk/integration-tests/pom.xml
===================================================================
--- trunk/integration-tests/pom.xml 2010-10-06 14:38:10 UTC (rev 1022)
+++ trunk/integration-tests/pom.xml 2010-10-06 18:42:15 UTC (rev 1023)
@@ -532,68 +532,156 @@
</execution>
</executions>
</plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <additionalClasspathElements>
- <additionalClasspathElement>${basedir}/src/test/resources</additionalClasspathElement>
- <additionalClasspathElement>${basedir}/src/test/resources/conf</additionalClasspathElement>
-
<additionalClasspathElement>${basedir}/target/rosetta.aop</additionalClasspathElement>
- </additionalClasspathElements>
- <systemProperties>
- <property>
- <name>test.dir</name>
- <value>${basedir}/target/tests</value>
- </property>
- <property>
- <name>ws.stack</name>
- <value>${ws.stack}</value>
- </property>
- <property>
- <name>test.delay</name>
- <value>${test.delay}</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>
- <!--
https://jira.jboss.org/jira/browse/RIFTSAW-34 -->
- <excludes>
- <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELAtmTestCase.java</exclude>
- <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELPurchaseTestCase.java</exclude>
- <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELTravelAgencyTestCase.java</exclude>
- </excludes>
- </configuration>
- <executions>
- <execution>
- <id>test-riftsaw</id>
- <phase>integration-test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>testesb</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <additionalClasspathElements>
+ <additionalClasspathElement>${basedir}/src/test/resources</additionalClasspathElement>
+ <additionalClasspathElement>${basedir}/src/test/resources/conf</additionalClasspathElement>
+
<additionalClasspathElement>${basedir}/target/rosetta.aop</additionalClasspathElement>
+ </additionalClasspathElements>
+ <systemProperties>
+ <property>
+ <name>test.dir</name>
+ <value>${basedir}/target/tests</value>
+ </property>
+ <property>
+ <name>ws.stack</name>
+ <value>${ws.stack}</value>
+ </property>
+ <property>
+ <name>test.delay</name>
+ <value>${test.delay}</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>
+ <!--
https://jira.jboss.org/jira/browse/RIFTSAW-34 -->
+ <excludes>
+ <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELAtmTestCase.java</exclude>
+ <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELPurchaseTestCase.java</exclude>
+ <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELTravelAgencyTestCase.java</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>test-riftsaw-with-esb</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ <profile>
+ <id>testnoesb</id>
+ <activation>
+ <property>
+ <name>testesb</name>
+ <value>false</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <additionalClasspathElements>
+ <additionalClasspathElement>${basedir}/src/test/resources</additionalClasspathElement>
+ <additionalClasspathElement>${basedir}/src/test/resources/conf</additionalClasspathElement>
+
<additionalClasspathElement>${basedir}/target/rosetta.aop</additionalClasspathElement>
+ </additionalClasspathElements>
+ <systemProperties>
+ <property>
+ <name>test.dir</name>
+ <value>${basedir}/target/tests</value>
+ </property>
+ <property>
+ <name>ws.stack</name>
+ <value>${ws.stack}</value>
+ </property>
+ <property>
+ <name>test.delay</name>
+ <value>${test.delay}</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>
+ <!--
https://jira.jboss.org/jira/browse/RIFTSAW-34 -->
+ <excludes>
+ <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELAtmTestCase.java</exclude>
+ <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELPurchaseTestCase.java</exclude>
+ <exclude>org/jboss/soa/bpel/tests/samples/TutorialBPELTravelAgencyTestCase.java</exclude>
+ <exclude>org/jboss/soa/bpel/tests/esb/**/*TestCase.java</exclude>
+ <exclude>org/jboss/soa/bpel/tests/esb/**/*Test.java</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>test-riftsaw-without-esb</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
<reporting>
<plugins>
<plugin>
Copied:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java
(from rev 1012,
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java)
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -0,0 +1,50 @@
+/*
+ * 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.esb;
+
+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_extended_timeout sample.
+ */
+public class QuickstartESBBPELHelloWorldExtendedTimeoutTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME =
"Quickstart_esb_bpel_hello_world_extended_timeout";
+
+ public QuickstartESBBPELHelloWorldExtendedTimeoutTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.class,
+ TEST_NAME,
"Quickstart_esb_bpel_hello_world_extended_timeout.esb,../Quickstart_bpel_hello_world_extended_timeout/Quickstart_bpel_hello_world_extended_timeout-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendESBMessage("Hello World via ESB to BPEL",
"HelloWorldBPELESB", "SayHello", 180000);
+
+ assertMessage(result, "Hello World via ESB to BPEL World");
+ }
+}
Copied:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java
(from rev 1012,
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java)
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -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.esb;
+
+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_no_extended_timeout sample.
+ */
+public class QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME =
"Quickstart_esb_bpel_hello_world_no_extended_timeout";
+
+ public QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new
RiftSawTestSetup(QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.class,
+ TEST_NAME,
"Quickstart_esb_bpel_hello_world_no_extended_timeout.esb,../Quickstart_bpel_hello_world_extended_timeout/Quickstart_bpel_hello_world_extended_timeout-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+
+ try {
+ sendESBMessage("Hello World via ESB to BPEL", "HelloWorldBPELESB",
"SayHello", 180000);
+
+ fail("Should have timed out due to default timeout period on BPEL
process");
+ } catch(Exception e) {
+ // Ignore - should fail due to timeout
+ }
+ }
+}
Copied:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldTestCase.java
(from rev 1012,
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldTestCase.java)
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldTestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELHelloWorldTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -0,0 +1,50 @@
+/*
+ * 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.esb;
+
+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 QuickstartESBBPELHelloWorldTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_esb_bpel_hello_world";
+
+ public QuickstartESBBPELHelloWorldTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartESBBPELHelloWorldTestCase.class,
+ TEST_NAME,
"Quickstart_esb_bpel_hello_world.esb,../Quickstart_bpel_hello_world/Quickstart_bpel_hello_world-1.jar"));
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendESBMessage("Hello World via ESB to BPEL",
"HelloWorldBPELESB", "SayHello");
+
+ assertMessage(result, "Hello World via ESB to BPEL World");
+ }
+}
Copied:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELLoanApprovalTestCase.java
(from rev 1012,
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanApprovalTestCase.java)
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELLoanApprovalTestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELLoanApprovalTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -0,0 +1,53 @@
+/*
+ * 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.esb;
+
+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_loan_approval sample from an ESB service.
+ */
+public class QuickstartESBBPELLoanApprovalTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_esb_bpel_loan_approval";
+
+ public QuickstartESBBPELLoanApprovalTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartESBBPELLoanApprovalTestCase.class,
+ TEST_NAME,
"Quickstart_esb_bpel_loan_approval.esb,../Quickstart_bpel_loan_approval/Quickstart_bpel_loan_approval-1.jar,../Quickstart_bpel_loan_approval/Quickstart_bpel_loan_approval.war"));
+ }
+
+ public void testSendHello() throws Exception {
+ String
result=sendESBMessage("<request><firstName>Fred</firstName><name>Bloggs</name><amount>1000</amount></request>",
+ "LoanApprovalBPELESB", "LoanApproval");
+
+ if (result == null || result.contains("<accept>yes</accept>") ==
false) {
+ fail("Invalid result");
+ }
+ }
+}
Copied:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELLoanFaultTestCase.java
(from rev 1012,
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanFaultTestCase.java)
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELLoanFaultTestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartESBBPELLoanFaultTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -0,0 +1,87 @@
+/*
+ * 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.esb;
+
+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_loan_fault sample.
+ */
+public class QuickstartESBBPELLoanFaultTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_esb_bpel_loan_fault";
+ protected static final String BODY_FAULT_CODE =
"org.jboss.soa.esb.message.fault.detail.code";
+ protected static final String BODY_BPEL_FAULT_CODE =
"org.jboss.soa.bpel.message.fault.detail.code";
+ protected static final String BODY_FAULT_MESSAGE =
"org.jboss.soa.esb.message.fault.detail.detail";
+
+ public QuickstartESBBPELLoanFaultTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ return(new RiftSawTestSetup(QuickstartESBBPELLoanFaultTestCase.class,
+ TEST_NAME,
"Quickstart_esb_bpel_loan_fault.esb,../Quickstart_bpel_loan_approval/Quickstart_bpel_loan_approval-1.jar,../Quickstart_bpel_loan_approval/Quickstart_bpel_loan_approval.war"));
+ }
+
+ public void testSendLoanRequestZeroAmountException() throws Exception {
+ try {
+ String
result=sendESBMessage("<request><firstName>Jane</firstName><name>Bloggs</name><amount>0</amount></request>",
+ "LoanFaultBPELESB", "LoanFailException");
+
+ fail("Test should have failed with FaultMessageException");
+
+ } catch(org.jboss.soa.esb.couriers.FaultMessageException fme) {
+
+ assertMessage((String)fme.getReturnedMessage().getBody().get(BODY_FAULT_MESSAGE),
+ "<message><errorCode><integer
xmlns=\"http://example.com/loan-approval/xsd/error-messages/\"&...);
+
+ assertMessage((String)fme.getReturnedMessage().getBody().get(BODY_BPEL_FAULT_CODE),
+ "{http://example.com/loan-approval/wsdl/}unableToHandleRequest");
+
+ } catch(Exception e) {
+ fail("Test failed with exception: "+e);
+ }
+ }
+
+ public void testSendLoanRequestZeroAmountFaultMessage() throws Exception {
+ try {
+ String
result=sendESBMessage("<request><firstName>Jane</firstName><name>Bloggs</name><amount>0</amount></request>",
+ "LoanFaultBPELESB", "LoanFailMessage");
+
+ fail("Test should have failed with FaultMessageException");
+
+ } catch(org.jboss.soa.esb.couriers.FaultMessageException fme) {
+
+ assertMessage((String)fme.getReturnedMessage().getBody().get(BODY_FAULT_MESSAGE),
+ "<message><errorCode><integer
xmlns=\"http://example.com/loan-approval/xsd/error-messages/\"&...);
+
+ assertMessage((String)fme.getReturnedMessage().getBody().get(BODY_BPEL_FAULT_CODE),
+ "{http://example.com/loan-approval/wsdl/}unableToHandleRequest");
+
+ } catch(Exception e) {
+ fail("Test failed with exception: "+e);
+ }
+ }
+}
Copied:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartSimpleESBProxyInvoke2TestCase.java
(from rev 1012,
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java)
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartSimpleESBProxyInvoke2TestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartSimpleESBProxyInvoke2TestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -0,0 +1,57 @@
+/*
+ * 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.esb;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for running the ESB simple_esb_proxy_invoke sample.
+ */
+public class QuickstartSimpleESBProxyInvoke2TestCase extends RiftSawTest {
+
+ private static final String TEST_NAME =
"Quickstart_simple_esb_proxy_invoke2";
+
+ public QuickstartSimpleESBProxyInvoke2TestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ if
(System.getProperty("ws.stack","native").equals("native"))
{
+ return(new RiftSawTestSetup(QuickstartSimpleESBProxyInvoke2TestCase.class,
+ TEST_NAME,
"Quickstart_simple_esb_proxy_invoke2-1.jar,Quickstart_simple_esb_proxy_invoke2.war,Quickstart_simple_esb_proxy_invoke2-service.esb"));
+ } else {
+ return(new junit.framework.TestSuite());
+ }
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendSOAPMessage("hello_request1.xml",
+ "http://localhost:8080/Quickstart_bpel_simple_invokeWS");
+
+ result = processResult(result);
+
+ assertMessageFromFile(result, "hello_response1.xml");
+ }
+}
Copied:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartSimpleESBProxyInvokeTestCase.java
(from rev 1012,
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvokeTestCase.java)
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartSimpleESBProxyInvokeTestCase.java
(rev 0)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/esb/QuickstartSimpleESBProxyInvokeTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -0,0 +1,57 @@
+/*
+ * 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.esb;
+
+import org.jboss.soa.bpel.tests.RiftSawTest;
+import org.jboss.soa.bpel.tests.RiftSawTestSetup;
+
+import junit.framework.Test;
+
+/**
+ * Test case for running the ESB simple_esb_proxy_invoke sample.
+ */
+public class QuickstartSimpleESBProxyInvokeTestCase extends RiftSawTest {
+
+ private static final String TEST_NAME = "Quickstart_simple_esb_proxy_invoke";
+
+ public QuickstartSimpleESBProxyInvokeTestCase() {
+ super(TEST_NAME);
+ }
+
+ public static Test suite() {
+ if
(System.getProperty("ws.stack","native").equals("native"))
{
+ return(new RiftSawTestSetup(QuickstartSimpleESBProxyInvokeTestCase.class,
+ TEST_NAME,
"Quickstart_simple_esb_proxy_invoke-1.jar,Quickstart_simple_esb_proxy_invoke.war,Quickstart_simple_esb_proxy_invoke.esb"));
+ } else {
+ return(new junit.framework.TestSuite());
+ }
+ }
+
+ public void testSendHello() throws Exception {
+ String result=sendSOAPMessage("hello_request1.xml",
+ "http://localhost:8080/Quickstart_bpel_simple_invokeWS");
+
+ result = processResult(result);
+
+ assertMessageFromFile(result, "hello_response1.xml");
+ }
+}
Deleted:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java 2010-10-06
14:38:10 UTC (rev 1022)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -1,50 +0,0 @@
-/*
- * 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.samples;
-
-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_extended_timeout sample.
- */
-public class QuickstartESBBPELHelloWorldExtendedTimeoutTestCase extends RiftSawTest {
-
- private static final String TEST_NAME =
"Quickstart_esb_bpel_hello_world_extended_timeout";
-
- public QuickstartESBBPELHelloWorldExtendedTimeoutTestCase() {
- super(TEST_NAME);
- }
-
- public static Test suite() {
- return(new RiftSawTestSetup(QuickstartESBBPELHelloWorldExtendedTimeoutTestCase.class,
- TEST_NAME,
"Quickstart_esb_bpel_hello_world_extended_timeout.esb,../Quickstart_bpel_hello_world_extended_timeout/Quickstart_bpel_hello_world_extended_timeout-1.jar"));
- }
-
- public void testSendHello() throws Exception {
- String result=sendESBMessage("Hello World via ESB to BPEL",
"HelloWorldBPELESB", "SayHello", 180000);
-
- assertMessage(result, "Hello World via ESB to BPEL World");
- }
-}
Deleted:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java 2010-10-06
14:38:10 UTC (rev 1022)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -1,55 +0,0 @@
-/*
- * 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.samples;
-
-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_no_extended_timeout sample.
- */
-public class QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase extends RiftSawTest {
-
- private static final String TEST_NAME =
"Quickstart_esb_bpel_hello_world_no_extended_timeout";
-
- public QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase() {
- super(TEST_NAME);
- }
-
- public static Test suite() {
- return(new
RiftSawTestSetup(QuickstartESBBPELHelloWorldNoExtendedTimeoutTestCase.class,
- TEST_NAME,
"Quickstart_esb_bpel_hello_world_no_extended_timeout.esb,../Quickstart_bpel_hello_world_extended_timeout/Quickstart_bpel_hello_world_extended_timeout-1.jar"));
- }
-
- public void testSendHello() throws Exception {
-
- try {
- sendESBMessage("Hello World via ESB to BPEL", "HelloWorldBPELESB",
"SayHello", 180000);
-
- fail("Should have timed out due to default timeout period on BPEL
process");
- } catch(Exception e) {
- // Ignore - should fail due to timeout
- }
- }
-}
Deleted:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldTestCase.java 2010-10-06
14:38:10 UTC (rev 1022)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELHelloWorldTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -1,50 +0,0 @@
-/*
- * 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.samples;
-
-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 QuickstartESBBPELHelloWorldTestCase extends RiftSawTest {
-
- private static final String TEST_NAME = "Quickstart_esb_bpel_hello_world";
-
- public QuickstartESBBPELHelloWorldTestCase() {
- super(TEST_NAME);
- }
-
- public static Test suite() {
- return(new RiftSawTestSetup(QuickstartESBBPELHelloWorldTestCase.class,
- TEST_NAME,
"Quickstart_esb_bpel_hello_world.esb,../Quickstart_bpel_hello_world/Quickstart_bpel_hello_world-1.jar"));
- }
-
- public void testSendHello() throws Exception {
- String result=sendESBMessage("Hello World via ESB to BPEL",
"HelloWorldBPELESB", "SayHello");
-
- assertMessage(result, "Hello World via ESB to BPEL World");
- }
-}
Deleted:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanApprovalTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanApprovalTestCase.java 2010-10-06
14:38:10 UTC (rev 1022)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanApprovalTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -1,53 +0,0 @@
-/*
- * 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.samples;
-
-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_loan_approval sample from an ESB service.
- */
-public class QuickstartESBBPELLoanApprovalTestCase extends RiftSawTest {
-
- private static final String TEST_NAME = "Quickstart_esb_bpel_loan_approval";
-
- public QuickstartESBBPELLoanApprovalTestCase() {
- super(TEST_NAME);
- }
-
- public static Test suite() {
- return(new RiftSawTestSetup(QuickstartESBBPELLoanApprovalTestCase.class,
- TEST_NAME,
"Quickstart_esb_bpel_loan_approval.esb,../Quickstart_bpel_loan_approval/Quickstart_bpel_loan_approval-1.jar,../Quickstart_bpel_loan_approval/Quickstart_bpel_loan_approval.war"));
- }
-
- public void testSendHello() throws Exception {
- String
result=sendESBMessage("<request><firstName>Fred</firstName><name>Bloggs</name><amount>1000</amount></request>",
- "LoanApprovalBPELESB", "LoanApproval");
-
- if (result == null || result.contains("<accept>yes</accept>") ==
false) {
- fail("Invalid result");
- }
- }
-}
Deleted:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanFaultTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanFaultTestCase.java 2010-10-06
14:38:10 UTC (rev 1022)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartESBBPELLoanFaultTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -1,87 +0,0 @@
-/*
- * 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.samples;
-
-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_loan_fault sample.
- */
-public class QuickstartESBBPELLoanFaultTestCase extends RiftSawTest {
-
- private static final String TEST_NAME = "Quickstart_esb_bpel_loan_fault";
- protected static final String BODY_FAULT_CODE =
"org.jboss.soa.esb.message.fault.detail.code";
- protected static final String BODY_BPEL_FAULT_CODE =
"org.jboss.soa.bpel.message.fault.detail.code";
- protected static final String BODY_FAULT_MESSAGE =
"org.jboss.soa.esb.message.fault.detail.detail";
-
- public QuickstartESBBPELLoanFaultTestCase() {
- super(TEST_NAME);
- }
-
- public static Test suite() {
- return(new RiftSawTestSetup(QuickstartESBBPELLoanFaultTestCase.class,
- TEST_NAME,
"Quickstart_esb_bpel_loan_fault.esb,../Quickstart_bpel_loan_approval/Quickstart_bpel_loan_approval-1.jar,../Quickstart_bpel_loan_approval/Quickstart_bpel_loan_approval.war"));
- }
-
- public void testSendLoanRequestZeroAmountException() throws Exception {
- try {
- String
result=sendESBMessage("<request><firstName>Jane</firstName><name>Bloggs</name><amount>0</amount></request>",
- "LoanFaultBPELESB", "LoanFailException");
-
- fail("Test should have failed with FaultMessageException");
-
- } catch(org.jboss.soa.esb.couriers.FaultMessageException fme) {
-
- assertMessage((String)fme.getReturnedMessage().getBody().get(BODY_FAULT_MESSAGE),
- "<message><errorCode><integer
xmlns=\"http://example.com/loan-approval/xsd/error-messages/\"&...);
-
- assertMessage((String)fme.getReturnedMessage().getBody().get(BODY_BPEL_FAULT_CODE),
- "{http://example.com/loan-approval/wsdl/}unableToHandleRequest");
-
- } catch(Exception e) {
- fail("Test failed with exception: "+e);
- }
- }
-
- public void testSendLoanRequestZeroAmountFaultMessage() throws Exception {
- try {
- String
result=sendESBMessage("<request><firstName>Jane</firstName><name>Bloggs</name><amount>0</amount></request>",
- "LoanFaultBPELESB", "LoanFailMessage");
-
- fail("Test should have failed with FaultMessageException");
-
- } catch(org.jboss.soa.esb.couriers.FaultMessageException fme) {
-
- assertMessage((String)fme.getReturnedMessage().getBody().get(BODY_FAULT_MESSAGE),
- "<message><errorCode><integer
xmlns=\"http://example.com/loan-approval/xsd/error-messages/\"&...);
-
- assertMessage((String)fme.getReturnedMessage().getBody().get(BODY_BPEL_FAULT_CODE),
- "{http://example.com/loan-approval/wsdl/}unableToHandleRequest");
-
- } catch(Exception e) {
- fail("Test failed with exception: "+e);
- }
- }
-}
Deleted:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java 2010-10-06
14:38:10 UTC (rev 1022)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvoke2TestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -1,57 +0,0 @@
-/*
- * 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.samples;
-
-import org.jboss.soa.bpel.tests.RiftSawTest;
-import org.jboss.soa.bpel.tests.RiftSawTestSetup;
-
-import junit.framework.Test;
-
-/**
- * Test case for running the ESB simple_esb_proxy_invoke sample.
- */
-public class QuickstartSimpleESBProxyInvoke2TestCase extends RiftSawTest {
-
- private static final String TEST_NAME =
"Quickstart_simple_esb_proxy_invoke2";
-
- public QuickstartSimpleESBProxyInvoke2TestCase() {
- super(TEST_NAME);
- }
-
- public static Test suite() {
- if
(System.getProperty("ws.stack","native").equals("native"))
{
- return(new RiftSawTestSetup(QuickstartSimpleESBProxyInvoke2TestCase.class,
- TEST_NAME,
"Quickstart_simple_esb_proxy_invoke2-1.jar,Quickstart_simple_esb_proxy_invoke2.war,Quickstart_simple_esb_proxy_invoke2-service.esb"));
- } else {
- return(new junit.framework.TestSuite());
- }
- }
-
- public void testSendHello() throws Exception {
- String result=sendSOAPMessage("hello_request1.xml",
- "http://localhost:8080/Quickstart_bpel_simple_invokeWS");
-
- result = processResult(result);
-
- assertMessageFromFile(result, "hello_response1.xml");
- }
-}
Deleted:
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvokeTestCase.java
===================================================================
---
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvokeTestCase.java 2010-10-06
14:38:10 UTC (rev 1022)
+++
trunk/integration-tests/src/test/java/org/jboss/soa/bpel/tests/samples/QuickstartSimpleESBProxyInvokeTestCase.java 2010-10-06
18:42:15 UTC (rev 1023)
@@ -1,57 +0,0 @@
-/*
- * 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.samples;
-
-import org.jboss.soa.bpel.tests.RiftSawTest;
-import org.jboss.soa.bpel.tests.RiftSawTestSetup;
-
-import junit.framework.Test;
-
-/**
- * Test case for running the ESB simple_esb_proxy_invoke sample.
- */
-public class QuickstartSimpleESBProxyInvokeTestCase extends RiftSawTest {
-
- private static final String TEST_NAME = "Quickstart_simple_esb_proxy_invoke";
-
- public QuickstartSimpleESBProxyInvokeTestCase() {
- super(TEST_NAME);
- }
-
- public static Test suite() {
- if
(System.getProperty("ws.stack","native").equals("native"))
{
- return(new RiftSawTestSetup(QuickstartSimpleESBProxyInvokeTestCase.class,
- TEST_NAME,
"Quickstart_simple_esb_proxy_invoke-1.jar,Quickstart_simple_esb_proxy_invoke.war,Quickstart_simple_esb_proxy_invoke.esb"));
- } else {
- return(new junit.framework.TestSuite());
- }
- }
-
- public void testSendHello() throws Exception {
- String result=sendSOAPMessage("hello_request1.xml",
- "http://localhost:8080/Quickstart_bpel_simple_invokeWS");
-
- result = processResult(result);
-
- assertMessageFromFile(result, "hello_response1.xml");
- }
-}