[jboss-cvs] system2/src/tests/org/jboss/test/server/profileservice ...
Scott Stark
scott.stark at jboss.com
Fri Jul 14 11:13:00 EDT 2006
User: starksm
Date: 06/07/14 11:13:00
Modified: src/tests/org/jboss/test/server/profileservice
MainTestCase.java
Log:
Valdiate that a jbosstest.deploy.dir prop exists and set it from the same env variable if it exists
Revision Changes Path
1.3 +9 -0 system2/src/tests/org/jboss/test/server/profileservice/MainTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MainTestCase.java
===================================================================
RCS file: /cvsroot/jboss/system2/src/tests/org/jboss/test/server/profileservice/MainTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- MainTestCase.java 12 Jul 2006 09:10:36 -0000 1.2
+++ MainTestCase.java 14 Jul 2006 15:13:00 -0000 1.3
@@ -84,6 +84,15 @@
*/
public void testDefaultStartup() throws Exception
{
+ // If jbosstest.deploy.dir is not defined fail
+ String deployDirEnv = System.getenv("jbosstest.deploy.dir");
+ String deployDirProp = System.getProperty("jbosstest.deploy.dir");
+ if( deployDirProp == null && deployDirEnv != null )
+ {
+ System.setProperty("jbosstest.deploy.dir", deployDirEnv);
+ deployDirProp = deployDirEnv;
+ }
+ assertNotNull("jbosstest.deploy.dir != null", deployDirProp);
ArrayList<String> args = new ArrayList<String>();
String[] tmp = {};
Main main = new Main();
More information about the jboss-cvs-commits
mailing list