avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/test/org/apache/avalon/excalibur/datasource/test DataSourceTestCase.xtest
Date Tue, 05 Feb 2002 11:02:51 GMT
leif        02/02/05 03:02:51

  Modified:    src/test/org/apache/avalon/excalibur/datasource/test
                        DataSourceTestCase.xtest
  Log:
  Make it possible to run JDBC tests on anybody's machine without
  having to change code.
  
  Revision  Changes    Path
  1.3       +34 -4     jakarta-avalon-excalibur/src/test/org/apache/avalon/excalibur/datasource/test/DataSourceTestCase.xtest
  
  Index: DataSourceTestCase.xtest
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/test/org/apache/avalon/excalibur/datasource/test/DataSourceTestCase.xtest,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DataSourceTestCase.xtest	17 Dec 2001 06:38:25 -0000	1.2
  +++ DataSourceTestCase.xtest	5 Feb 2002 11:02:51 -0000	1.3
  @@ -13,6 +13,36 @@
   
     <logkit>
       <factories>
  +      <factory type="stream" 
  +               class="org.apache.avalon.excalibur.logger.factory.StreamTargetFactory"/>
  +      <factory type="file" class="org.apache.avalon.excalibur.logger.factory.FileTargetFactory"/>
  +    </factories>
  +
  +    <targets>
  +      <stream id="console">
  +        <stream>System.out</stream>
  +        <format type="avalon">
  +          %7.7{priority} %5.5{time}   [%8.8{category}] (%{context}): %{message}\n%{throwable}
  +        </format>
  +      </stream>
  +      <file id="file">
  +        <filename>TEST-org.apache.avalon.excalibur.datasource.test.DataSourceTestCase.log</filename>
  +        <format type="extended">
  +          %7.7{priority} %5.5{time}   [%8.8{category}] (%{context}): %{message}\n%{throwable}
  +        </format>
  +      </file>
  +    </targets>
  +
  +    <categories>
  +      <category name="test" log-level="INFO">
  +        <log-target id-ref="console"/>
  +        <log-target id-ref="file"/>
  +      </category>
  +    </categories>
  +  </logkit>
  +    
  +  <logkit>
  +    <factories>
         <factory type="file" class="org.apache.avalon.excalibur.logger.factory.FileTargetFactory"/>
       </factories>
   
  @@ -45,10 +75,10 @@
     <components>
       <datasource logger="test">
         <pool-controller min="5" max="10"/>
  -      <driver>sun.jdbc.odbc.JdbcOdbcDriver</driver>
  -      <dburl>jdbc:odbc:test</dburl>
  -      <user>test</user>
  -      <password>test</password>
  +      <driver>@test.jdbc.driver@</driver>
  +      <dburl>@test.jdbc.url@</dburl>
  +      <user>@test.jdbc.user@</user>
  +      <password>@test.jdbc.password@</password>
       </datasource>
     </components>
   </testcase>
  
  
  

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


Mime
View raw message