[jboss-cvs] JBossAS SVN: r73682 - trunk/testsuite/src/main/org/jboss/test/jca/mbean.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon May 26 10:40:00 EDT 2008


Author: adrian at jboss.org
Date: 2008-05-26 10:40:00 -0400 (Mon, 26 May 2008)
New Revision: 73682

Modified:
   trunk/testsuite/src/main/org/jboss/test/jca/mbean/Scoped.java
Log:
Fix the test to use the correct class

Modified: trunk/testsuite/src/main/org/jboss/test/jca/mbean/Scoped.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/mbean/Scoped.java	2008-05-26 14:10:36 UTC (rev 73681)
+++ trunk/testsuite/src/main/org/jboss/test/jca/mbean/Scoped.java	2008-05-26 14:40:00 UTC (rev 73682)
@@ -23,9 +23,9 @@
 
 import javax.naming.InitialContext;
 
+import org.jboss.classloader.plugins.ClassLoaderUtils;
 import org.jboss.system.ServiceMBeanSupport;
-import org.jboss.test.jca.adapter.TestManagedConnectionFactory;
-import org.jboss.test.util.Debug;
+import org.jboss.test.jca.adapter.TestConnectionFactory;
 
 /**
  * Scoped.
@@ -40,13 +40,13 @@
    {
       InitialContext ctx = new InitialContext();
       Object obj = ctx.lookup("java:/ScopedCF");
-      if (obj instanceof TestManagedConnectionFactory == false)
+      if (obj instanceof TestConnectionFactory == false)
       {
          StringBuffer buffer = new StringBuffer();
          buffer.append("Expected ");
-         Debug.displayClassInfo(TestManagedConnectionFactory.class, buffer);
+         buffer.append(ClassLoaderUtils.classToString(TestConnectionFactory.class));
          buffer.append("Got ");
-         Debug.displayClassInfo(obj.getClass(), buffer);
+         buffer.append(obj.getClass());
          throw new RuntimeException(buffer.toString());
       }
    }




More information about the jboss-cvs-commits mailing list