[431855] [CBI] Enable junit tests for servertools.tests repo 
diff --git a/tests/org.eclipse.jst.server.core.tests/pom.xml b/tests/org.eclipse.jst.server.core.tests/pom.xml
index 0a85d71..74d6307 100644
--- a/tests/org.eclipse.jst.server.core.tests/pom.xml
+++ b/tests/org.eclipse.jst.server.core.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -23,5 +23,29 @@
   <groupId>org.eclipse.webtools.servertools</groupId>

   <artifactId>org.eclipse.jst.server.core.tests</artifactId>

   <version>1.1.200-SNAPSHOT</version>

-  <packaging>eclipse-plugin</packaging>

+  <packaging>eclipse-test-plugin</packaging>

+

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.jst.server.core.tests.AllTests</testClass>

+  </properties>

+

+  <build>

+    <plugins>

+      <plugin>

+        <groupId>org.eclipse.tycho</groupId>

+        <artifactId>tycho-surefire-plugin</artifactId>

+        <version>${tycho.version}</version>

+        <configuration>

+          <dependencies>

+            <dependency>

+              <type>p2-installable-unit</type>

+              <artifactId>org.eclipse.jst.j2ee.ui</artifactId>

+              <version>0.0.0</version>

+            </dependency>

+          </dependencies>

+        </configuration>

+      </plugin>

+    </plugins>

+  </build>

 </project>

diff --git a/tests/org.eclipse.jst.server.generic.tests/pom.xml b/tests/org.eclipse.jst.server.generic.tests/pom.xml
index b11de0c..c98912b 100644
--- a/tests/org.eclipse.jst.server.generic.tests/pom.xml
+++ b/tests/org.eclipse.jst.server.generic.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -23,5 +23,29 @@
   <groupId>org.eclipse.webtools.servertools</groupId>

   <artifactId>org.eclipse.jst.server.generic.tests</artifactId>

   <version>1.0.200-SNAPSHOT</version>

-  <packaging>eclipse-plugin</packaging>

+  <packaging>eclipse-test-plugin</packaging>

+

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.jst.server.generic.tests.AllGenericServerTests</testClass>

+  </properties>

+

+  <build>

+    <plugins>

+      <plugin>

+        <groupId>org.eclipse.tycho</groupId>

+        <artifactId>tycho-surefire-plugin</artifactId>

+        <version>${tycho.version}</version>

+        <configuration>

+          <dependencies>

+            <dependency>

+              <type>p2-installable-unit</type>

+              <artifactId>org.eclipse.jst.server.generic.jonas</artifactId>

+              <version>0.0.0</version>

+            </dependency>

+          </dependencies>

+        </configuration>

+      </plugin>

+    </plugins>

+  </build>

 </project>

diff --git a/tests/org.eclipse.jst.server.tomcat.core.tests/pom.xml b/tests/org.eclipse.jst.server.tomcat.core.tests/pom.xml
index 914a656..c8e52c6 100644
--- a/tests/org.eclipse.jst.server.tomcat.core.tests/pom.xml
+++ b/tests/org.eclipse.jst.server.tomcat.core.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -23,5 +23,29 @@
   <groupId>org.eclipse.webtools.servertools</groupId>

   <artifactId>org.eclipse.jst.server.tomcat.core.tests</artifactId>

   <version>1.1.300-SNAPSHOT</version>

-  <packaging>eclipse-plugin</packaging>

+  <packaging>eclipse-test-plugin</packaging>

+

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.jst.server.tomcat.core.tests.AllTests</testClass>

+  </properties>

+

+  <build>

+    <plugins>

+      <plugin>

+        <groupId>org.eclipse.tycho</groupId>

+        <artifactId>tycho-surefire-plugin</artifactId>

+        <version>${tycho.version}</version>

+        <configuration>

+          <dependencies>

+            <dependency>

+              <type>p2-installable-unit</type>

+              <artifactId>org.eclipse.jst.j2ee.ui</artifactId>

+              <version>0.0.0</version>

+            </dependency>

+          </dependencies>

+        </configuration>

+      </plugin>

+    </plugins>

+  </build>

 </project>

diff --git a/tests/org.eclipse.jst.server.tomcat.ui.tests/pom.xml b/tests/org.eclipse.jst.server.tomcat.ui.tests/pom.xml
index edf3b16..bbc0e95 100644
--- a/tests/org.eclipse.jst.server.tomcat.ui.tests/pom.xml
+++ b/tests/org.eclipse.jst.server.tomcat.ui.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -23,5 +23,24 @@
   <groupId>org.eclipse.webtools.servertools</groupId>

   <artifactId>org.eclipse.jst.server.tomcat.ui.tests</artifactId>

   <version>1.1.100-SNAPSHOT</version>

-  <packaging>eclipse-plugin</packaging>

+  <packaging>eclipse-test-plugin</packaging>

+

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.jst.server.tomcat.ui.tests.AllTests</testClass>

+  </properties>

+

+  <build>

+    <plugins>

+      <plugin>

+        <groupId>org.eclipse.tycho</groupId>

+        <artifactId>tycho-surefire-plugin</artifactId>

+        <version>${tycho.version}</version>

+        <configuration>

+          <useUIHarness>true</useUIHarness>

+          <useUIThread>true</useUIThread>

+        </configuration>

+      </plugin>

+    </plugins>

+  </build>

 </project>

diff --git a/tests/org.eclipse.jst.server.ui.tests/pom.xml b/tests/org.eclipse.jst.server.ui.tests/pom.xml
index f8f41fa..d0134e7 100644
--- a/tests/org.eclipse.jst.server.ui.tests/pom.xml
+++ b/tests/org.eclipse.jst.server.ui.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -23,5 +23,24 @@
   <groupId>org.eclipse.webtools.servertools</groupId>

   <artifactId>org.eclipse.jst.server.ui.tests</artifactId>

   <version>1.1.100-SNAPSHOT</version>

-  <packaging>eclipse-plugin</packaging>

+  <packaging>eclipse-test-plugin</packaging>

+

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.jst.server.ui.tests.AllTests</testClass>

+  </properties>

+

+  <build>

+    <plugins>

+      <plugin>

+        <groupId>org.eclipse.tycho</groupId>

+        <artifactId>tycho-surefire-plugin</artifactId>

+        <version>${tycho.version}</version>

+        <configuration>

+          <useUIHarness>true</useUIHarness>

+          <useUIThread>true</useUIThread>

+        </configuration>

+      </plugin>

+    </plugins>

+  </build>

 </project>

diff --git a/tests/org.eclipse.wst.internet.monitor.core.tests/pom.xml b/tests/org.eclipse.wst.internet.monitor.core.tests/pom.xml
index 1f3530f..f8ff89e 100644
--- a/tests/org.eclipse.wst.internet.monitor.core.tests/pom.xml
+++ b/tests/org.eclipse.wst.internet.monitor.core.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -23,5 +23,10 @@
   <groupId>org.eclipse.webtools.servertools</groupId>

   <artifactId>org.eclipse.wst.internet.monitor.core.tests</artifactId>

   <version>1.1.100-SNAPSHOT</version>

-  <packaging>eclipse-plugin</packaging>

+  <packaging>eclipse-test-plugin</packaging>

+

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.wst.internet.monitor.core.tests.AllTests</testClass>

+  </properties>

 </project>

diff --git a/tests/org.eclipse.wst.internet.monitor.ui.tests/pom.xml b/tests/org.eclipse.wst.internet.monitor.ui.tests/pom.xml
index 4df41fc..fa5facb 100644
--- a/tests/org.eclipse.wst.internet.monitor.ui.tests/pom.xml
+++ b/tests/org.eclipse.wst.internet.monitor.ui.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -23,5 +23,31 @@
   <groupId>org.eclipse.webtools.servertools</groupId>

   <artifactId>org.eclipse.wst.internet.monitor.ui.tests</artifactId>

   <version>1.1.200-SNAPSHOT</version>

-  <packaging>eclipse-plugin</packaging>

+  <packaging>eclipse-test-plugin</packaging>

+

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.wst.internet.monitor.ui.tests.AllTests</testClass>

+  </properties>

+

+  <build>

+    <plugins>

+      <plugin>

+        <groupId>org.eclipse.tycho</groupId>

+        <artifactId>tycho-surefire-plugin</artifactId>

+        <version>${tycho.version}</version>

+        <configuration>

+          <useUIHarness>true</useUIHarness>

+          <useUIThread>true</useUIThread>

+          <dependencies>

+            <dependency>

+              <type>p2-installable-unit</type>

+              <artifactId>org.eclipse.sdk.ide</artifactId>

+              <version>0.0.0</version>

+            </dependency>

+          </dependencies>

+        </configuration>

+      </plugin>

+    </plugins>

+  </build>

 </project>

diff --git a/tests/org.eclipse.wst.server.core.tests/pom.xml b/tests/org.eclipse.wst.server.core.tests/pom.xml
index ed3b75c..bae2a11 100644
--- a/tests/org.eclipse.wst.server.core.tests/pom.xml
+++ b/tests/org.eclipse.wst.server.core.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -23,5 +23,10 @@
   <groupId>org.eclipse.webtools.servertools</groupId>

   <artifactId>org.eclipse.wst.server.core.tests</artifactId>

   <version>1.1.200-SNAPSHOT</version>

-  <packaging>eclipse-plugin</packaging>

+  <packaging>eclipse-test-plugin</packaging>

+

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.wst.server.core.tests.AllTests</testClass>

+  </properties>

 </project>

diff --git a/tests/org.eclipse.wst.server.ui.tests/pom.xml b/tests/org.eclipse.wst.server.ui.tests/pom.xml
index 01a592d..599e2b1 100644
--- a/tests/org.eclipse.wst.server.ui.tests/pom.xml
+++ b/tests/org.eclipse.wst.server.ui.tests/pom.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>

 <!--

-  Copyright (c) 2012, 2013 Eclipse Foundation and others.

+  Copyright (c) 2012, 2014 Eclipse Foundation and others.

   All rights reserved. This program and the accompanying materials

   are made available under the terms of the Eclipse Distribution License v1.0

   which accompanies this distribution, and is available at

@@ -24,4 +24,23 @@
   <artifactId>org.eclipse.wst.server.ui.tests</artifactId>

   <version>1.1.300-SNAPSHOT</version>

   <packaging>eclipse-plugin</packaging>

+  

+  <packaging>eclipse-test-plugin</packaging>

+  <properties>

+    <testSuite>${project.artifactId}</testSuite>

+    <testClass>org.eclipse.wst.server.ui.tests.AllTests</testClass>

+  </properties>

+  <build>

+    <plugins>

+      <plugin>

+        <groupId>org.eclipse.tycho</groupId>

+        <artifactId>tycho-surefire-plugin</artifactId>

+        <version>${tycho.version}</version>

+        <configuration>

+          <useUIHarness>true</useUIHarness>

+          <useUIThread>true</useUIThread>

+        </configuration>

+      </plugin>

+    </plugins>

+  </build>

 </project>