[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/detection/metadata ...

Tom Elrod tom.elrod at jboss.com
Tue Aug 1 15:20:38 EDT 2006


  User: telrod  
  Date: 06/08/01 15:20:38

  Modified:    src/tests/org/jboss/test/remoting/detection/metadata 
                        MetadataTestCase.java
  Log:
  Adding logging for debugging on linux.
  
  Revision  Changes    Path
  1.4       +15 -9     JBossRemoting/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MetadataTestCase.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- MetadataTestCase.java	30 Dec 2005 05:26:41 -0000	1.3
  +++ MetadataTestCase.java	1 Aug 2006 19:20:38 -0000	1.4
  @@ -22,14 +22,8 @@
   
   package org.jboss.test.remoting.detection.metadata;
   
  -import java.io.ByteArrayInputStream;
  -import java.util.List;
  -import javax.management.MBeanServer;
  -import javax.management.MBeanServerFactory;
  -import javax.management.Notification;
  -import javax.management.NotificationListener;
  -import javax.management.ObjectName;
  -import javax.xml.parsers.DocumentBuilderFactory;
  +import junit.framework.TestCase;
  +import org.apache.log4j.Level;
   import org.jboss.remoting.InvokerLocator;
   import org.jboss.remoting.detection.ServerInvokerMetadata;
   import org.jboss.remoting.detection.multicast.MulticastDetector;
  @@ -39,7 +33,14 @@
   import org.jboss.test.remoting.TestUtil;
   import org.w3c.dom.Document;
   
  -import junit.framework.TestCase;
  +import javax.management.MBeanServer;
  +import javax.management.MBeanServerFactory;
  +import javax.management.Notification;
  +import javax.management.NotificationListener;
  +import javax.management.ObjectName;
  +import javax.xml.parsers.DocumentBuilderFactory;
  +import java.io.ByteArrayInputStream;
  +import java.util.List;
   
   /**
    * Just tests that detector A sees detector B when B comes online then off.
  @@ -58,6 +59,11 @@
   
      public void testDetectors() throws Exception
      {
  +      org.apache.log4j.BasicConfigurator.configure();
  +      org.apache.log4j.Category.getRoot().setLevel(Level.DEBUG);
  +      org.apache.log4j.Category.getInstance("org.jboss.remoting").setLevel(Level.DEBUG);
  +      org.apache.log4j.Category.getInstance("org.jgroups").setLevel(Level.FATAL);
  +
         MulticastDetector detector1 = new MulticastDetector();
         MulticastDetector detector2 = new MulticastDetector();
   
  
  
  



More information about the jboss-cvs-commits mailing list