commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject svn commit: r652157 - /commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java
Date Tue, 29 Apr 2008 21:39:45 GMT
Author: ebourg
Date: Tue Apr 29 14:39:45 2008
New Revision: 652157

URL: http://svn.apache.org/viewvc?rev=652157&view=rev
Log:
Improved the test coverage of ConfigurationDynaBean and ConfigurationDynaClass by enabling
the logging in the tests

Modified:
    commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java

Modified: commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java?rev=652157&r1=652156&r2=652157&view=diff
==============================================================================
--- commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java
(original)
+++ commons/proper/configuration/branches/configuration2_experimental/src/test/java/org/apache/commons/configuration2/beanutils/TestConfigurationDynaBean.java
Tue Apr 29 14:39:45 2008
@@ -19,15 +19,17 @@
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.logging.Level;
+import java.util.logging.Logger;
 
-import junit.framework.AssertionFailedError;
-import junit.framework.TestCase;
-import junitx.framework.ObjectAssert;
 import org.apache.commons.beanutils.DynaProperty;
 import org.apache.commons.configuration2.Configuration;
-import org.apache.commons.configuration2.beanutils.ConfigurationDynaBean;
 import org.apache.commons.configuration2.flat.BaseConfiguration;
 
+import junit.framework.AssertionFailedError;
+import junit.framework.TestCase;
+import junitx.framework.ObjectAssert;
+
 /**
  * <p>Test Case for the <code>ConfigurationDynaBean</code> implementation
class.
  * These tests were based on the ones in <code>BasicDynaBeanTestCase</code>
@@ -134,6 +136,10 @@
         bean.set("doubleArray", doubleArray);
         bean.set("byteArray", byteArray);
         bean.set("stringArray", stringArray);
+
+        // enable the finest logging
+        Logger.getLogger(ConfigurationDynaClass.class.getName()).setLevel(Level.ALL);
+        Logger.getLogger(ConfigurationDynaBean.class.getName()).setLevel(Level.ALL);
     }
 
     /**



Mime
View raw message