From 59dd037955847bc89aad2f16a48f597a7a8c8750 Mon Sep 17 00:00:00 2001 From: vamsic007 Date: Tue, 31 Mar 2009 18:23:42 +0000 Subject: TUSCANY-2935 Integration tests for Java EE contribution processing Added missing test resource. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@760561 13f79535-47bb-0310-9956-ffa450edef68 --- .../contribution/jee/ContributionServiceTestCase.java | 9 +++++++-- .../src/test/resources/repository/helloworld-ejb.ear | Bin 0 -> 21310 bytes 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 branches/sca-java-1.x/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.ear (limited to 'branches/sca-java-1.x/itest/contribution-jee') diff --git a/branches/sca-java-1.x/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/ContributionServiceTestCase.java b/branches/sca-java-1.x/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/ContributionServiceTestCase.java index 240fb103bd..598fb680aa 100644 --- a/branches/sca-java-1.x/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/ContributionServiceTestCase.java +++ b/branches/sca-java-1.x/itest/contribution-jee/src/test/java/org/apache/tuscany/sca/test/contribution/jee/ContributionServiceTestCase.java @@ -51,7 +51,7 @@ public class ContributionServiceTestCase { private static final String JAR_CONTRIBUTION = "/repository/helloworld-service.jar"; private static final String EJB_JAR_CONTRIBUTION = "/repository/helloworld-ejb.jar"; private static final String EJB_JAR_W_DEPLOYABLE_CONTRIBUTION = "/repository/helloworld-ejb-w-dep.jar"; - private static final String WAR_CONTRIBUTION = "/repository/helloworld-web.war"; + private static final String WAR_CONTRIBUTION = "/repository/helloworld-servlet.war"; private static final String WAR_W_DEPLOYABLE_CONTRIBUTION = "/repository/helloworld-web-w-dep.war"; private static final String EAR_CONTRIBUTION = "/repository/helloworld-ejb.ear"; @@ -82,6 +82,7 @@ public class ContributionServiceTestCase { * This method tests a non Java EE contribution. */ @Test +// @Ignore public void testContributeJAR() throws Exception { URL contributionLocation = getClass().getResource(JAR_CONTRIBUTION); String contributionId = CONTRIBUTION_001_ID; @@ -93,6 +94,7 @@ public class ContributionServiceTestCase { * This method tests an EJB jar as a contribution. */ @Test +// @Ignore public void testContributeEJBJAR() throws Exception { URL contributionLocation = getClass().getResource(EJB_JAR_CONTRIBUTION); String contributionId = CONTRIBUTION_001_ID; @@ -119,6 +121,7 @@ public class ContributionServiceTestCase { * This method tests an EJB jar with sca-contribution.xml as a contribution. */ @Test +// @Ignore public void testContributeEJBJARwDeployable() throws Exception { URL contributionLocation = getClass().getResource(EJB_JAR_W_DEPLOYABLE_CONTRIBUTION); String contributionId = CONTRIBUTION_001_ID; @@ -156,6 +159,7 @@ public class ContributionServiceTestCase { * This method tests WAR as a contribution. */ @Test + //@Ignore public void testContributeWAR() throws Exception { URL contributionLocation = getClass().getResource(WAR_CONTRIBUTION); String contributionId = CONTRIBUTION_001_ID; @@ -186,6 +190,7 @@ public class ContributionServiceTestCase { * This method tests WAR with sca-contribution.xml as a contribution. */ @Test +// @Ignore public void testContributeWARwDeployable() throws Exception { URL contributionLocation = getClass().getResource(WAR_W_DEPLOYABLE_CONTRIBUTION); String contributionId = CONTRIBUTION_001_ID; @@ -231,7 +236,7 @@ public class ContributionServiceTestCase { * This method test EAR as a contribution. */ @Test - @Ignore +// @Ignore public void testContributeEAR() throws Exception { URL contributionLocation = getClass().getResource(EAR_CONTRIBUTION); String contributionId = CONTRIBUTION_001_ID; diff --git a/branches/sca-java-1.x/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.ear b/branches/sca-java-1.x/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.ear new file mode 100644 index 0000000000..9fb1ed9d14 Binary files /dev/null and b/branches/sca-java-1.x/itest/contribution-jee/src/test/resources/repository/helloworld-ejb.ear differ -- cgit v1.2.3