Author: rob.stryker(a)jboss.com
Date: 2011-04-21 13:53:53 -0400 (Thu, 21 Apr 2011)
New Revision: 30711
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/ASTest.java
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/PreReqTest.java
Log:
adding default tests for as7
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/ASTest.java
===================================================================
---
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/ASTest.java 2011-04-21
17:49:37 UTC (rev 30710)
+++
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/ASTest.java 2011-04-21
17:53:53 UTC (rev 30711)
@@ -83,6 +83,8 @@
public static final String JBOSS_AS_50_HOME =
System.getProperty("jbosstools.test.jboss.home.5.0",
"C:\\apps\\jboss\\jboss-5.0.0.GA\\");
public static final String JBOSS_AS_51_HOME =
System.getProperty("jbosstools.test.jboss.home.5.1",
"C:\\apps\\jboss\\jboss-5.1.0.GA\\");
public static final String JBOSS_AS_52_HOME =
System.getProperty("jbosstools.test.jboss.home.5.2",
"C:\\apps\\jboss\\jboss-5.2.0.GA\\");
+ public static final String JBOSS_AS_60_HOME =
System.getProperty("jbosstools.test.jboss.home.6.0",
"C:\\apps\\jboss\\jboss-6.0.0.GA\\");
+ public static final String JBOSS_AS_70_HOME =
System.getProperty("jbosstools.test.jboss.home.7.0",
"C:\\apps\\jboss\\jboss-7.0.0.GA\\");
public static final String JRE_14_HOME =
System.getProperty("jbosstools.test.jre.1.4",
"C:\\apps\\jboss\\jboss-5.2.0.GA\\");
public static final String JRE_5_HOME =
System.getProperty("jbosstools.test.jre.5",
"C:\\apps\\jboss\\jboss-5.2.0.GA\\");
public static final String JRE_6_HOME =
System.getProperty("jbosstools.test.jre.6",
"C:\\apps\\jboss\\jboss-5.2.0.GA\\");
Modified:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/PreReqTest.java
===================================================================
---
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/PreReqTest.java 2011-04-21
17:49:37 UTC (rev 30710)
+++
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/PreReqTest.java 2011-04-21
17:53:53 UTC (rev 30711)
@@ -34,6 +34,9 @@
* This class will test whether all of the pre-req
* locations, such as a working JBoss 4.2, are set.
*
+ * It also tests whether or not the server and
+ * runtime types exist (ie build error / config error)
+ *
* @author rob.stryker <rob.stryker(a)redhat.com>
*/
public class PreReqTest extends TestCase {
@@ -49,7 +52,23 @@
public void testAS42Exists() {
_testExists("JBoss 4.2", ASTest.JBOSS_AS_42_HOME);
}
-
+
+ public void testAS50Exists() {
+ _testExists("JBoss 5.0", ASTest.JBOSS_AS_50_HOME);
+ }
+
+ public void testAS51Exists() {
+ _testExists("JBoss 5.1", ASTest.JBOSS_AS_51_HOME);
+ }
+
+ public void testAS60Exists() {
+ _testExists("JBoss 6.0", ASTest.JBOSS_AS_60_HOME);
+ }
+
+ public void testAS70Exists() {
+ _testExists("JBoss 7.0", ASTest.JBOSS_AS_70_HOME);
+ }
+
public void testASHomeExists() {
_testExists("Default JBoss Installation", ASTest.JBOSS_AS_HOME);
}
@@ -87,6 +106,14 @@
_testRuntime(IJBossToolingConstants.AS_51);
}
+ public void testRuntime60Found() {
+ _testRuntime(IJBossToolingConstants.AS_60);
+ }
+
+ public void testRuntime70Found() {
+ _testRuntime(IJBossToolingConstants.AS_70);
+ }
+
public void testServer32Found() {
_testServer(IJBossToolingConstants.SERVER_AS_32);
}
@@ -107,7 +134,14 @@
_testServer(IJBossToolingConstants.SERVER_AS_51);
}
+ public void testServer60Found() {
+ _testServer(IJBossToolingConstants.SERVER_AS_60);
+ }
+ public void testServer70Found() {
+ _testServer(IJBossToolingConstants.SERVER_AS_70);
+ }
+
public void _testRuntime(String typeId) {
IRuntimeType rt = ServerCore.findRuntimeType(typeId);
if( rt == null )