[jboss-cvs] system2/src/tests/org/jboss/test/server/profileservice ...
Scott Stark
scott.stark at jboss.com
Mon Jul 17 22:21:39 EDT 2006
User: starksm
Date: 06/07/17 22:21:39
Modified: src/tests/org/jboss/test/server/profileservice
MainWithSimpleHotDeployTestCase.java
Log:
log the TestBean CodeSource and ClassLoader
Revision Changes Path
1.3 +9 -1 system2/src/tests/org/jboss/test/server/profileservice/MainWithSimpleHotDeployTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MainWithSimpleHotDeployTestCase.java
===================================================================
RCS file: /cvsroot/jboss/system2/src/tests/org/jboss/test/server/profileservice/MainWithSimpleHotDeployTestCase.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- MainWithSimpleHotDeployTestCase.java 17 Jul 2006 14:09:54 -0000 1.2
+++ MainWithSimpleHotDeployTestCase.java 18 Jul 2006 02:21:39 -0000 1.3
@@ -21,6 +21,8 @@
*/
package org.jboss.test.server.profileservice;
+import java.security.CodeSource;
+
import org.jboss.dependency.spi.ControllerState;
import org.jboss.deployment.scanner.VFSDeploymentScanner;
import org.jboss.kernel.Kernel;
@@ -38,7 +40,7 @@
* @see
*
* @author Scott.Stark at jboss.org
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class MainWithSimpleHotDeployTestCase extends BaseTestCase
{
@@ -105,6 +107,12 @@
assertInstalled(kernel, "TestBean");
assertInstalled(kernel, "VFSClassLoader-unpacked");
assertInstalled(kernel, "TestBean-unpacked");
+ entry = registry.getEntry("TestBean");
+ Object testBean = entry.getTarget();
+ CodeSource testBeanCS = testBean.getClass().getProtectionDomain().getCodeSource();
+ log.info("TestBean.CS: "+testBeanCS);
+ log.info("TestBean.ClassLoader: "+testBean.getClass().getClassLoader());
+
// Shutdown
main.shutdown();
More information about the jboss-cvs-commits
mailing list