diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-04 15:17:31 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-04 15:17:31 +0000 |
commit | b175edffceb282100b0359db6d90715ce70b4864 (patch) | |
tree | bd5026659741a726bfd2df71e415a88e710a86a2 /sca-java-2.x/trunk/samples/applications/store | |
parent | 1f252b24441ebdf6df3ce2ca16bca0d8eff935b4 (diff) |
Update to support being run with mvn exec:java
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1055077 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/applications/store')
-rw-r--r-- | sca-java-2.x/trunk/samples/applications/store/pom.xml | 18 | ||||
-rw-r--r-- | sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java | 10 |
2 files changed, 25 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/samples/applications/store/pom.xml b/sca-java-2.x/trunk/samples/applications/store/pom.xml index 94778a4833..057df05a61 100644 --- a/sca-java-2.x/trunk/samples/applications/store/pom.xml +++ b/sca-java-2.x/trunk/samples/applications/store/pom.xml @@ -108,6 +108,24 @@ <build> <finalName>${artifactId}</finalName> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.1.1</version> + <executions> + <execution> + <goals> + <goal>java</goal> + </goals> + </execution> + </executions> + <configuration> + <classpathScope>test</classpathScope> + <mainClass>store.StoreTestCase</mainClass> + </configuration> + </plugin> + </plugins> </build> </project> diff --git a/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java b/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java index 883aaa76f6..7fa866d1c6 100644 --- a/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java +++ b/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java @@ -52,6 +52,12 @@ import com.gargoylesoftware.htmlunit.html.HtmlPage; public class StoreTestCase { private static Node nodeStore; + public static void main(String[] args) throws Exception { + setUp(); + testWaitForInput(); + tearDown(); + } + @BeforeClass public static void setUp() throws Exception { String storeLocation = ContributionLocationHelper.getContributionLocation("store.composite"); @@ -66,9 +72,7 @@ public class StoreTestCase { nodeStore.stop(); } - @Test - @Ignore - public void testWaitForInput() { + public static void testWaitForInput() { try { System.out.println("press enter to continue)"); System.in.read(); |