From 4d25cad24d31f5f8c275d5fd631b1844473fb2ac Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 9 Apr 2009 14:30:12 +0000 Subject: Tag 2.0-M2 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@763664 13f79535-47bb-0310-9956-ffa450edef68 --- .../itest/distribution/bin-distro-unzip/build.xml | 24 ++++ .../itest/distribution/bin-distro-unzip/pom.xml | 137 +++++++++++++++++++++ .../distribution/binding-ws-calculator/build.xml | 40 ++++++ .../distribution/binding-ws-calculator/pom.xml | 81 ++++++++++++ .../itest/distribution/calculator-rmi/build.xml | 51 ++++++++ .../itest/distribution/calculator-rmi/pom.xml | 81 ++++++++++++ .../implementation-java-calculator/build.xml | 40 ++++++ .../implementation-java-calculator/pom.xml | 81 ++++++++++++ tags/java/sca/2.0-M2/itest/distribution/pom.xml | 45 +++++++ .../distribution/webapp-helloworld-jsp/pom.xml | 124 +++++++++++++++++++ .../src/test/java/itest/HelloworldTestCase.java | 50 ++++++++ .../distribution/webapp-helloworld-stripes/pom.xml | 124 +++++++++++++++++++ .../src/test/java/itest/HelloworldTestCase.java | 53 ++++++++ .../itest/distribution/webapp-helloworld/pom.xml | 121 ++++++++++++++++++ 14 files changed, 1052 insertions(+) create mode 100644 tags/java/sca/2.0-M2/itest/distribution/bin-distro-unzip/build.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/bin-distro-unzip/pom.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/binding-ws-calculator/build.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/binding-ws-calculator/pom.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/calculator-rmi/build.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/calculator-rmi/pom.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/implementation-java-calculator/build.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/implementation-java-calculator/pom.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/pom.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-jsp/pom.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-jsp/src/test/java/itest/HelloworldTestCase.java create mode 100644 tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-stripes/pom.xml create mode 100644 tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-stripes/src/test/java/itest/HelloworldTestCase.java create mode 100644 tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld/pom.xml (limited to 'tags/java/sca/2.0-M2/itest/distribution') diff --git a/tags/java/sca/2.0-M2/itest/distribution/bin-distro-unzip/build.xml b/tags/java/sca/2.0-M2/itest/distribution/bin-distro-unzip/build.xml new file mode 100644 index 0000000000..7542fc23dd --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/bin-distro-unzip/build.xml @@ -0,0 +1,24 @@ + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/bin-distro-unzip/pom.xml b/tags/java/sca/2.0-M2/itest/distribution/bin-distro-unzip/pom.xml new file mode 100644 index 0000000000..673f903917 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/bin-distro-unzip/pom.xml @@ -0,0 +1,137 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-M2 + ../pom.xml + + itest-bin-distro-unzip + Apache Tuscany SCA iTest Bin Distro Unzip + + + + org.apache.tuscany.sca + tuscany-distribution-all + pom + 2.0-M2 + + + + + + + + not-sun-jdk + + + ${java.home}/../lib/tools.jar + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + + + run-samples + verify + + run + + + + + + + + + + + + + + + + sun-jdk + + + ${java.home}/../lib/tools.jar + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/binding-ws-calculator/build.xml b/tags/java/sca/2.0-M2/itest/distribution/binding-ws-calculator/build.xml new file mode 100644 index 0000000000..bfcdfe1063 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/binding-ws-calculator/build.xml @@ -0,0 +1,40 @@ + + + + ${JAVA_HOME} + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/binding-ws-calculator/pom.xml b/tags/java/sca/2.0-M2/itest/distribution/binding-ws-calculator/pom.xml new file mode 100644 index 0000000000..5784129d22 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/binding-ws-calculator/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-M2 + ../pom.xml + + itest-distribution-binding-ws-calculator + Apache Tuscany SCA Distribution iTest binding-ws-calculator + + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-M2 + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/calculator-rmi/build.xml b/tags/java/sca/2.0-M2/itest/distribution/calculator-rmi/build.xml new file mode 100644 index 0000000000..fb6f20f9c1 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/calculator-rmi/build.xml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/calculator-rmi/pom.xml b/tags/java/sca/2.0-M2/itest/distribution/calculator-rmi/pom.xml new file mode 100644 index 0000000000..3b3a4a0345 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/calculator-rmi/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-M2 + ../pom.xml + + itest-distribution-calculator-rmi + Apache Tuscany SCA Distribution iTest calculator-rmi + + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-M2 + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/implementation-java-calculator/build.xml b/tags/java/sca/2.0-M2/itest/distribution/implementation-java-calculator/build.xml new file mode 100644 index 0000000000..3da5aace09 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/implementation-java-calculator/build.xml @@ -0,0 +1,40 @@ + + + + ${JAVA_HOME} + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/implementation-java-calculator/pom.xml b/tags/java/sca/2.0-M2/itest/distribution/implementation-java-calculator/pom.xml new file mode 100644 index 0000000000..1ca88516a1 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/implementation-java-calculator/pom.xml @@ -0,0 +1,81 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-M2 + ../pom.xml + + itest-distribution-implementation-java-calculator + Apache Tuscany SCA Distribution iTest implementation-java-calculator + + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-M2 + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.3 + + + + ant + ant-trax + 1.6.5 + + + + sun.jdk + tools + 1.6 + system + ${java.home}/../lib/tools.jar + + + + + + run-samples + verify + + run + + + + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/pom.xml b/tags/java/sca/2.0-M2/itest/distribution/pom.xml new file mode 100644 index 0000000000..5ba2091d1c --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/pom.xml @@ -0,0 +1,45 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 2.0-M2 + ../pom.xml + + pom + itest-distribution + Apache Tuscany SCA Distribution Integration Tests + + + install + + + + bin-distro-unzip + binding-ws-calculator + calculator-rmi + implementation-java-calculator + webapp-helloworld + webapp-helloworld-jsp + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-jsp/pom.xml b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-jsp/pom.xml new file mode 100644 index 0000000000..9ff4fe18e3 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-jsp/pom.xml @@ -0,0 +1,124 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-M2 + ../pom.xml + + itest-distribution-webapp-helloworld-jsp + Apache Tuscany SCA Distribution iTest Webapp helloworld-jsp + + + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-M2 + + + + org.apache.tuscany.sca + helloworld-jsp + war + 2.0-M2 + + + + junit + junit + 4.5 + test + + + + htmlunit + htmlunit + 1.9 + test + + + + + + + + org.codehaus.cargo + cargo-maven2-plugin + 1.0-beta-2 + + + start-container + compile + + start + + + + stop-container + post-integration-test + + stop + + + + + false + + jetty6x + embedded + + org.apache.commons.logging.impl.SimpleLog + + + + + ${project.build.directory}/cargo-jetty + + + + 8085 + helloworld-jsp + + + + org.apache.tuscany.sca + helloworld-jsp + war + + helloworld-jsp + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-jsp/src/test/java/itest/HelloworldTestCase.java b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-jsp/src/test/java/itest/HelloworldTestCase.java new file mode 100644 index 0000000000..7bcd590cf0 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-jsp/src/test/java/itest/HelloworldTestCase.java @@ -0,0 +1,50 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package itest; + +import static org.junit.Assert.assertEquals; + +import java.io.IOException; +import java.net.MalformedURLException; +import java.util.Iterator; + +import org.junit.Test; + +import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; +import com.gargoylesoftware.htmlunit.WebClient; +import com.gargoylesoftware.htmlunit.html.HtmlPage; +import com.gargoylesoftware.htmlunit.html.HtmlParagraph; + +/** + */ +public class HelloworldTestCase { + + @Test + public void testA() throws FailingHttpStatusCodeException, MalformedURLException, IOException { + HtmlPage page = (HtmlPage)new WebClient().getPage("http://localhost:8085/helloworld-jsp"); + Iterator ss = page.getAllHtmlChildElements(); + ss.next(); + ss.next(); + ss.next(); + HtmlParagraph p = (HtmlParagraph)ss.next(); + assertEquals("Hello world", p.asText()); + } + +} diff --git a/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-stripes/pom.xml b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-stripes/pom.xml new file mode 100644 index 0000000000..d7072196c5 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-stripes/pom.xml @@ -0,0 +1,124 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-M2 + ../pom.xml + + itest-distribution-webapp-helloworld-stripes + Apache Tuscany SCA Distribution iTest Webapp helloworld-stripes + + + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-M2 + + + + org.apache.tuscany.sca + helloworld-stripes + war + 2.0-M2 + + + + junit + junit + 4.5 + test + + + + htmlunit + htmlunit + 1.9 + test + + + + + + + + org.codehaus.cargo + cargo-maven2-plugin + 1.0-beta-2 + + + start-container + compile + + start + + + + stop-container + post-integration-test + + stop + + + + + false + + jetty6x + embedded + + org.apache.commons.logging.impl.SimpleLog + + + + + ${project.build.directory}/cargo-jetty + + + + 8085 + helloworld-stripes + + + + org.apache.tuscany.sca + helloworld-stripes + war + + helloworld-stripes + + + + + + + + + + diff --git a/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-stripes/src/test/java/itest/HelloworldTestCase.java b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-stripes/src/test/java/itest/HelloworldTestCase.java new file mode 100644 index 0000000000..4c75e312b5 --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld-stripes/src/test/java/itest/HelloworldTestCase.java @@ -0,0 +1,53 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package itest; + +import static org.junit.Assert.assertEquals; + +import java.io.IOException; +import java.net.MalformedURLException; +import java.util.Iterator; + +import org.junit.Test; + +import com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException; +import com.gargoylesoftware.htmlunit.WebClient; +import com.gargoylesoftware.htmlunit.html.HtmlPage; +import com.gargoylesoftware.htmlunit.html.HtmlParagraph; + +/** + */ +public class HelloworldTestCase { + + @Test + public void testA() throws FailingHttpStatusCodeException, MalformedURLException, IOException { + HtmlPage page = (HtmlPage)new WebClient().getPage("http://localhost:8085/helloworld-stripes"); + Iterator ss = page.getAllHtmlChildElements(); + Object o1= ss.next(); + Object o2= ss.next(); + Object o3= ss.next(); + Object o4= ss.next(); + Object o5= ss.next(); + Object o6= ss.next(); + HtmlParagraph p = (HtmlParagraph)ss.next(); + assertEquals("sayHello returns: Hello world", p.asText()); + } + +} diff --git a/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld/pom.xml b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld/pom.xml new file mode 100644 index 0000000000..ac62f8962a --- /dev/null +++ b/tags/java/sca/2.0-M2/itest/distribution/webapp-helloworld/pom.xml @@ -0,0 +1,121 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + itest-distribution + 2.0-M2 + ../pom.xml + + itest-distribution-webapp-helloworld + Apache Tuscany SCA Distribution iTest Webapp helloworld + + + + + org.apache.tuscany.sca + itest-bin-distro-unzip + pom + 2.0-M2 + + + + org.apache.tuscany.sca + helloworld + war + 2.0-M2 + + + + junit + junit + 4.5 + test + + + + httpunit + httpunit + 1.6.1 + test + + + + + + + + org.codehaus.cargo + cargo-maven2-plugin + 1.0-beta-2 + + + start-container + pre-integration-test + + start + + + + stop-container + post-integration-test + + stop + + + + + false + + jetty6x + embedded + + org.apache.commons.logging.impl.SimpleLog + + + + + ${project.build.directory}/cargo-jetty + + + + 8085 + + + + org.apache.tuscany.sca + helloworld + war + http://localhost:8085/helloworld + + + + + + + + + -- cgit v1.2.3