You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2011/01/04 16:17:31 UTC
svn commit: r1055077 - in
/tuscany/sca-java-2.x/trunk/samples/applications/store: pom.xml
src/test/java/store/StoreTestCase.java
Author: antelder
Date: Tue Jan 4 15:17:31 2011
New Revision: 1055077
URL: http://svn.apache.org/viewvc?rev=1055077&view=rev
Log:
Update to support being run with mvn exec:java
Modified:
tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml
tuscany/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java
Modified: tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml?rev=1055077&r1=1055076&r2=1055077&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml (original)
+++ tuscany/sca-java-2.x/trunk/samples/applications/store/pom.xml Tue Jan 4 15:17:31 2011
@@ -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>
Modified: tuscany/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java?rev=1055077&r1=1055076&r2=1055077&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java (original)
+++ tuscany/sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java Tue Jan 4 15:17:31 2011
@@ -52,6 +52,12 @@ import com.gargoylesoftware.htmlunit.htm
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();