prickett    2002/10/24 13:10:03

  Modified:    
periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database
                        DatabaseMDNameTypeNullTest.java
                        DatabaseMDTypeNullTest.java
                        DriverMDContextNameNullTest.java
                        DriverMDContextNullTest.java
                        DriverMDNameNullTest.java
                        DriverServiceConfigEmptyTest.java
                        DriverServiceConfigNullTest.java
                        DriverServiceDbFileNonExistTest.java
                        DriverServiceDbFileNotFileTest.java
  Log:
  Changed the following tests to inherit from TestWithMavenLogging and added
  log messages to record the actual exceptions that occured without failing the
  test. (We expect exceptions from these tests, We just want to know exactly
  which ones occured.)
  
  DatabaseMDNameTypeNullTest
  DatabaseMDTypeNullTest
  DriverMDContextNameNullTest
  DriverMDContextNullTest
  DriverMDNameNullTest
  DriverServiceConfigEmptyTest
  DriverServiceConfigNullTest
  DriverServiceDbFileNonExistTest
  DriverServiceDbFileNotFile
  
  Revision  Changes    Path
  1.4       +9 -5      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DatabaseMDNameTypeNullTest.java
  
  Index: DatabaseMDNameTypeNullTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DatabaseMDNameTypeNullTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DatabaseMDNameTypeNullTest.java   23 Oct 2002 15:56:59 -0000      1.3
  +++ DatabaseMDNameTypeNullTest.java   24 Oct 2002 20:10:03 -0000      1.4
  @@ -63,9 +63,9 @@
   
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DatabaseMDNameTypeNullTest extends TestCase 
  +public class DatabaseMDNameTypeNullTest extends TestWithMavenLogging
   {
   
       public static final String TEST_NAME =
  @@ -86,6 +86,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }
   
  
  
  
  1.4       +9 -5      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DatabaseMDTypeNullTest.java
  
  Index: DatabaseMDTypeNullTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DatabaseMDTypeNullTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DatabaseMDTypeNullTest.java       23 Oct 2002 15:56:59 -0000      1.3
  +++ DatabaseMDTypeNullTest.java       24 Oct 2002 20:10:03 -0000      1.4
  @@ -62,9 +62,9 @@
    */ 
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DatabaseMDTypeNullTest extends TestCase 
  +public class DatabaseMDTypeNullTest extends TestWithMavenLogging
   {
   
       public static final String TEST_NAME = 
  @@ -86,6 +86,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }
   
  
  
  
  1.4       +9 -5      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverMDContextNameNullTest.java
  
  Index: DriverMDContextNameNullTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverMDContextNameNullTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DriverMDContextNameNullTest.java  23 Oct 2002 15:56:59 -0000      1.3
  +++ DriverMDContextNameNullTest.java  24 Oct 2002 20:10:03 -0000      1.4
  @@ -63,9 +63,9 @@
   
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DriverMDContextNameNullTest extends TestCase
  +public class DriverMDContextNameNullTest extends TestWithMavenLogging 
   {
   
       public static final String TEST_NAME = 
  @@ -88,6 +88,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }
   
  
  
  
  1.5       +9 -8      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverMDContextNullTest.java
  
  Index: DriverMDContextNullTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverMDContextNullTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DriverMDContextNullTest.java      23 Oct 2002 15:56:59 -0000      1.4
  +++ DriverMDContextNullTest.java      24 Oct 2002 20:10:03 -0000      1.5
  @@ -63,9 +63,9 @@
   
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DriverMDContextNullTest extends TestCase
  +public class DriverMDContextNullTest extends TestWithMavenLogging
   {
   
       public static final String TEST_NAME = "DatabaseMetaDataImpl.context_null";
  @@ -87,6 +87,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }
   
  @@ -96,6 +100,3 @@
       }           
   
   }    
  -            
  -        
  -
  
  
  
  1.4       +9 -5      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverMDNameNullTest.java
  
  Index: DriverMDNameNullTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverMDNameNullTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DriverMDNameNullTest.java 23 Oct 2002 15:56:59 -0000      1.3
  +++ DriverMDNameNullTest.java 24 Oct 2002 20:10:03 -0000      1.4
  @@ -63,10 +63,10 @@
   
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
   import org.apache.velocity.VelocityContext;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DriverMDNameNullTest extends TestCase
  +public class DriverMDNameNullTest extends TestWithMavenLogging
   {
   
       public static final String TEST_NAME = "DriverMetaDataImpl.name_null";
  @@ -88,6 +88,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }
   
  
  
  
  1.4       +9 -5      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverServiceConfigEmptyTest.java
  
  Index: DriverServiceConfigEmptyTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverServiceConfigEmptyTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DriverServiceConfigEmptyTest.java 23 Oct 2002 15:56:59 -0000      1.3
  +++ DriverServiceConfigEmptyTest.java 24 Oct 2002 20:10:03 -0000      1.4
  @@ -63,10 +63,10 @@
    */ 
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
   import org.apache.commons.configuration.BaseConfiguration;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DriverServiceConfigEmptyTest extends TestCase
  +public class DriverServiceConfigEmptyTest extends TestWithMavenLogging
   {
       public static final String TEST_NAME = 
              "PeriodicityDriverService.empty_config";
  @@ -89,6 +89,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }
   
  
  
  
  1.4       +9 -5      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverServiceConfigNullTest.java
  
  Index: DriverServiceConfigNullTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverServiceConfigNullTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DriverServiceConfigNullTest.java  23 Oct 2002 15:56:59 -0000      1.3
  +++ DriverServiceConfigNullTest.java  24 Oct 2002 20:10:03 -0000      1.4
  @@ -64,9 +64,9 @@
   
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DriverServiceConfigNullTest extends TestCase
  +public class DriverServiceConfigNullTest extends TestWithMavenLogging
   {
   
       public static final String TEST_NAME = 
  @@ -89,6 +89,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }
   
  
  
  
  1.4       +9 -5      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverServiceDbFileNonExistTest.java
  
  Index: DriverServiceDbFileNonExistTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverServiceDbFileNonExistTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DriverServiceDbFileNonExistTest.java      23 Oct 2002 15:56:59 -0000      1.3
  +++ DriverServiceDbFileNonExistTest.java      24 Oct 2002 20:10:03 -0000      1.4
  @@ -64,10 +64,10 @@
   
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
   import org.apache.commons.configuration.BaseConfiguration;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DriverServiceDbFileNonExistTest extends TestCase
  +public class DriverServiceDbFileNonExistTest extends TestWithMavenLogging
   {
   
       public static final String TEST_NAME = 
  @@ -97,6 +97,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }
   
  
  
  
  1.2       +9 -5      
jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverServiceDbFileNotFileTest.java
  
  Index: DriverServiceDbFileNotFileTest.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database/DriverServiceDbFileNotFileTest.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- DriverServiceDbFileNotFileTest.java       23 Oct 2002 15:56:59 -0000      1.1
  +++ DriverServiceDbFileNotFileTest.java       24 Oct 2002 20:10:03 -0000      1.2
  @@ -64,10 +64,10 @@
   
   
   import junit.framework.Test;
  -import junit.framework.TestCase;
   import org.apache.commons.configuration.BaseConfiguration;
  +import org.apache.commons.periodicity.junit.TestWithMavenLogging;
   
  -public class DriverServiceDbFileNotFileTest extends TestCase
  +public class DriverServiceDbFileNotFileTest extends TestWithMavenLogging
   {
       public static final String TEST_NAME = 
              "PeriodicityDriverService.db_file_not_a_file";
  @@ -95,6 +95,10 @@
           }
           catch(Exception e)
           {
  +            if(getLogger() != null)
  +            {
  +                getLogger().info("Expected Exception", e);
  +            }    
           }
       }    
                      
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@;jakarta.apache.org>

Reply via email to