commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prick...@apache.org
Subject cvs commit: jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database DriverMDContextNullTest.java
Date Wed, 23 Oct 2002 01:10:52 GMT
prickett    2002/10/22 18:10:52

  Modified:    periodicity/src/plugins-build/database/src/java/org/apache/commons/periodicity/database
                        DriverMetaDataImpl.java
               periodicity/src/plugins-build/database/src/test/org/apache/commons/periodicity/database
                        DriverMDContextNullTest.java
  Log:
  Changed the Exception messages to be more descriptive in DriverMetaDataImpl
  
  Changed incorrect variable reference that was causing an exception. JUnit
  knocked out another bug...
  
  Fixed suite method to be static in DriverMDContextNullTest
  
  Revision  Changes    Path
  1.3       +6 -6      jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/java/org/apache/commons/periodicity/database/DriverMetaDataImpl.java
  
  Index: DriverMetaDataImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/periodicity/src/plugins-build/database/src/java/org/apache/commons/periodicity/database/DriverMetaDataImpl.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DriverMetaDataImpl.java	21 Oct 2002 03:57:12 -0000	1.2
  +++ DriverMetaDataImpl.java	23 Oct 2002 01:10:52 -0000	1.3
  @@ -125,7 +125,7 @@
           }
           else
           {
  -            throw new Exception("newval == null");
  +            throw new Exception("newName == null");
           }
       }    
   
  @@ -148,13 +148,13 @@
        */
       private void setVelocityContext(Context newval) throws Exception
       {
  -        if(context != null)
  +        if(newval != null)
           {
               context = newval;
           }
           else
           {
  -            throw new Exception("newval == null");
  +            throw new Exception("newContext == null");
           }
       }    
   }    
  
  
  
  1.3       +4 -4      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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DriverMDContextNullTest.java	22 Oct 2002 05:23:06 -0000	1.2
  +++ DriverMDContextNullTest.java	23 Oct 2002 01:10:52 -0000	1.3
  @@ -87,7 +87,7 @@
           }
       }
   
  -    public Test suite()
  +    public static Test suite()
       {
           return new DriverMDContextNullTest(
                  "DatabaseMetaDataImpl.context_null");
  
  
  

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


Mime
View raw message