summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/samples/applications/store/pom.xml18
-rw-r--r--sca-java-2.x/trunk/samples/applications/store/src/test/java/store/StoreTestCase.java10
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();