Author: dgolovin
Date: 2008-06-13 02:35:28 -0400 (Fri, 13 Jun 2008)
New Revision: 8751
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard/AbstractSeamNewOperationTest.java
Log:
enable seam 2.0 for seam ui tests
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard/AbstractSeamNewOperationTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard/AbstractSeamNewOperationTest.java 2008-06-13
06:08:38 UTC (rev 8750)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/wizard/AbstractSeamNewOperationTest.java 2008-06-13
06:35:28 UTC (rev 8751)
@@ -73,9 +73,7 @@
protected static final String SEAM_2_0 = "Seam 2.0.0";
protected static final String SEAM_1_2_HOME =
"jbosstools.test.seam.1.2.1.eap.home";
- protected static final String SEAM_2_0_HOME =
"jbosstools.test.seam.2.0.0.home";
- protected static final String SEAM_1_2_HOME_DEFAULT =
"F:/jbdevstudio-ga/jboss-eap/seam";
- protected static final String SEAM_2_0_HOME_DEFAULT =
"E:/Java/JBoss/Seam/jboss-seam-2.0.1.GA";
+ protected static final String SEAM_2_0_HOME =
"jbosstools.test.seam.2.0.1.GA.home";
private static final String SEAM_ACTION_COMPONENT_NAME = "TestAction";
private static final String SEAM_FORM_COMPONENT_NAME = "TestForm";
@@ -272,12 +270,15 @@
protected File getSeamHomeFolder(String seamRTName) {
+ File seamHome = null;
if (SEAM_1_2.equals(seamRTName)) {
- return new File(System.getProperty(SEAM_1_2_HOME, SEAM_1_2_HOME_DEFAULT));
+ seamHome = new File(System.getProperty(SEAM_1_2_HOME));
+
} else if (SEAM_2_0.equals(seamRTName)) {
- return new File(System.getProperty(SEAM_2_0_HOME, SEAM_2_0_HOME_DEFAULT));
+ seamHome = new File(System.getProperty(SEAM_2_0_HOME));
}
- return null;
+
+ return seamHome;
}
protected SeamVersion getSeamRTVersion(String seamRTName) {