Author: Grid.Qian
Date: 2011-01-06 04:23:46 -0500 (Thu, 06 Jan 2011)
New Revision: 27940
Modified:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/AbstractJBossWSGenerationTest.java
Log:
JBIDE-8046: add asserts to get if there are jre5 property in system on hudson machine
Modified:
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/AbstractJBossWSGenerationTest.java
===================================================================
---
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/AbstractJBossWSGenerationTest.java 2011-01-06
06:21:51 UTC (rev 27939)
+++
trunk/ws/tests/org.jboss.tools.ws.creation.core.test/src/org/jboss/tools/ws/creation/core/test/command/AbstractJBossWSGenerationTest.java 2011-01-06
09:23:46 UTC (rev 27940)
@@ -9,6 +9,7 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
import org.eclipse.wst.common.project.facet.core.IProjectFacet;
@@ -46,6 +47,8 @@
public void setUp() throws Exception{
super.setUp();
+ assertNotNull(ASTest.JRE_5_HOME, "No JRE5 property in System");
+ assertTrue("The JRE5 location is not right", new
Path(ASTest.JRE_5_HOME).toFile().exists());
createWSServer();
wsHomePath = getJBossWSHomeFolder().toString();
JBossWSRuntimeManager.getInstance().addRuntime(RuntimeName,wsHomePath, "",
true);