User: kimptoc 
  Date: 01/09/07 03:26:43

  Modified:    src/main/org/jboss/test/jmx/test
                        TestConnectionFactoryLoader.java
  Log:
  fixed deprecation warnings
  
  Revision  Changes    Path
  1.3       +8 -8      
jbosstest/src/main/org/jboss/test/jmx/test/TestConnectionFactoryLoader.java
  
  Index: TestConnectionFactoryLoader.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/jmx/test/TestConnectionFactoryLoader.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TestConnectionFactoryLoader.java  2001/07/30 14:29:23     1.2
  +++ TestConnectionFactoryLoader.java  2001/09/07 10:26:43     1.3
  @@ -38,8 +38,8 @@
   /**
    *      
    *   @see <related>
  - *   @author $Author: d_jencks $
  - *   @version $Revision: 1.2 $
  + *   @author $Author: kimptoc $
  + *   @version $Revision: 1.3 $
    */
   public class TestConnectionFactoryLoader
      extends TestCase
  @@ -78,7 +78,7 @@
      }
   
      public void testServerFound() throws Exception {
  -      assert("Server was not found", server != null);
  +      assertTrue("Server was not found", server != null);
      }
   
      public void testAddRemoveConnectionFactory() throws Exception {
  @@ -88,14 +88,14 @@
         ObjectName connectionFactoryLoaderName = new 
ObjectName("Test:service=ConnectionFactoryLoader,name=TestDS");
   
         //check it isn't there already
  -      assert("test mbean already registered", 
!server.isRegistered(connectionFactoryLoaderName));
  +      assertTrue("test mbean already registered", 
!server.isRegistered(connectionFactoryLoaderName));
         //try to create the connection factory loader.
  -      assert("server did not return an objectInstance", 
  +      assertTrue("server did not return an objectInstance", 
                server.createMBean("org.jboss.resource.ConnectionFactoryLoader", 
                                   connectionFactoryLoaderName) != null);
         
         //check deployment registered connection factory loader
  -      assert("test mbean not registered", 
server.isRegistered(connectionFactoryLoaderName));
  +      assertTrue("test mbean not registered", 
server.isRegistered(connectionFactoryLoaderName));
   
         AttributeList al = new AttributeList();
         al.add(new Attribute("FactoryName", "ConnectionFactoryLoaderTestDS"));
  @@ -118,7 +118,7 @@
         al.add(new Attribute("PrincipalMappingProperties", "userName=sa\n"
            + " password="));
         //try to set the attributes on the bean
  -      assert("setAttributes returned null", 
server.setAttributes(connectionFactoryLoaderName, al) != null);
  +      assertTrue("setAttributes returned null", 
server.setAttributes(connectionFactoryLoaderName, al) != null);
   
         Object[] args = {};
         String[] sig = {};
  @@ -126,7 +126,7 @@
         server.invoke(connectionFactoryLoaderName, "init", args, sig);
         server.invoke(connectionFactoryLoaderName, "start", args, sig);
   
  -      assert("State is not started", 
"Started".equals(server.getAttribute(connectionFactoryLoaderName, "StateString")));
  +      assertTrue("State is not started", 
"Started".equals(server.getAttribute(connectionFactoryLoaderName, "StateString")));
   
         //deploy test session bean to look up datasource
         Deploy.deploy("jmxtest.jar");
  @@ -148,7 +148,7 @@
         server.unregisterMBean(connectionFactoryLoaderName);
   
         //check that the connection factory loader is no longer registered
  -      assert("connection factory loader mbean still registered", 
!server.isRegistered(connectionFactoryLoaderName));
  +      assertTrue("connection factory loader mbean still registered", 
!server.isRegistered(connectionFactoryLoaderName));
      }
   
   }
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to