portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/rdbms/src/test/org/apache/jetspeed/components TestRDBMS.java
Date Tue, 09 Mar 2004 16:18:24 GMT
weaver      2004/03/09 08:18:24

  Modified:    components/rdbms/src/test/org/apache/jetspeed/components
                        TestRDBMS.java
  Log:
  refactored to user the standard ComponentAwareTestSuite
  
  Revision  Changes    Path
  1.5       +4 -4      jakarta-jetspeed-2/components/rdbms/src/test/org/apache/jetspeed/components/TestRDBMS.java
  
  Index: TestRDBMS.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/components/rdbms/src/test/org/apache/jetspeed/components/TestRDBMS.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestRDBMS.java	8 Mar 2004 00:48:03 -0000	1.4
  +++ TestRDBMS.java	9 Mar 2004 16:18:24 -0000	1.5
  @@ -15,7 +15,6 @@
    */
   package org.apache.jetspeed.components;
   import java.sql.Connection;
  -import java.sql.DriverManager;
   
   import javax.sql.DataSource;
   
  @@ -23,7 +22,6 @@
   
   import org.apache.jetspeed.components.datasource.DBCPDatasourceComponent;
   import org.apache.jetspeed.components.datasource.DatasourceComponent;
  -import org.hsqldb.jdbcDriver;
   import org.picocontainer.MutablePicoContainer;
   /**
    * <p>
  @@ -38,8 +36,9 @@
   {
       public static Test suite()
       {
  -        // All methods starting with "test" will be executed in the test suite.
  -        return new DatasourceEnabledTestSuite(TestRDBMS.class);
  +        ComponentAwareTestSuite suite = new ComponentAwareTestSuite(TestRDBMS.class);
  +        suite.setScript("org/apache/jetspeed/containers/rdbms.container.groovy");
  +        return suite;
       }
       /**
        * Defines the testcase name for JUnit.
  @@ -51,6 +50,7 @@
       {
           super(name, "./src/test/Log4j.properties");
       }
  +    
       public void testDBCP_1() throws Exception
       {
           assertTrue(DatasourceComponent.class.isAssignableFrom(DBCPDatasourceComponent.class));
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message