[jboss-cvs] jboss-seam/src/main/org/jboss/seam/mock ...
Gavin King
gavin.king at jboss.com
Fri Jun 15 13:15:40 EDT 2007
User: gavin
Date: 07/06/15 13:15:40
Modified: src/main/org/jboss/seam/mock BaseSeamTest.java
SeamTest.java
Log:
fix
Revision Changes Path
1.14 +17 -3 jboss-seam/src/main/org/jboss/seam/mock/BaseSeamTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BaseSeamTest.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/mock/BaseSeamTest.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- BaseSeamTest.java 15 Jun 2007 07:24:56 -0000 1.13
+++ BaseSeamTest.java 15 Jun 2007 17:15:39 -0000 1.14
@@ -892,11 +892,25 @@
Bootstrap bootstrap = Bootstrap.getInstance();
bootstrap.bootstrap();
started = true;
+ if ( resourceExists("seam.properties") )
+ {
bootstrap.deployResourceBase("seam.properties");
+ }
+ if ( resourceExists("META-INF/components.xml") )
+ {
bootstrap.deployResourceBase("META-INF/components.xml");
+ }
+ if ( resourceExists("META-INF/seam.properties") )
+ {
bootstrap.deployResourceBase("META-INF/seam.properties");
}
}
+ }
+ private boolean resourceExists(String name)
+ {
+ return Thread.currentThread().getContextClassLoader().getResource(name)!=null;
+ }
+
}
1.75 +5 -5 jboss-seam/src/main/org/jboss/seam/mock/SeamTest.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SeamTest.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/mock/SeamTest.java,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -b -r1.74 -r1.75
--- SeamTest.java 15 Jun 2007 03:50:32 -0000 1.74
+++ SeamTest.java 15 Jun 2007 17:15:40 -0000 1.75
@@ -1,9 +1,9 @@
/*
- * JBoss, Home of Professional Open Source
- *
- * Distributable under LGPL license.
- * See terms of license at gnu.org.
- */
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
package org.jboss.seam.mock;
import org.testng.annotations.Configuration;
More information about the jboss-cvs-commits
mailing list