leif 02/02/08 01:29:58
Modified: src/test/org/apache/avalon/excalibur/datasource/test
DataSourceJdbcTestCase.java
Log:
Reduce the amount of log output.
Revision Changes Path
1.2 +6 -1
jakarta-avalon-excalibur/src/test/org/apache/avalon/excalibur/datasource/test/DataSourceJdbcTestCase.java
Index: DataSourceJdbcTestCase.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/src/test/org/apache/avalon/excalibur/datasource/test/DataSourceJdbcTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DataSourceJdbcTestCase.java 7 Feb 2002 08:39:21 -0000 1.1
+++ DataSourceJdbcTestCase.java 8 Feb 2002 09:29:58 -0000 1.2
@@ -40,6 +40,9 @@
public DataSourceJdbcTestCase(String name)
{
super(name);
+
+ // Set the priority for default log output.
+ m_logPriority = org.apache.log.Priority.INFO;
}
public void testOverAllocation()
@@ -52,10 +55,12 @@
{
ds = (DataSourceComponent) manager.lookup(
DataSourceComponent.ROLE );
- for( int i = 0; i < 11; i++ )
+ for( int i = 0; i < 10; i++ )
{
connectionList.add( ds.getConnection() );
}
+ getLogger().info( "Testing overallocation of connections.
Should see a warning next." );
+ connectionList.add( ds.getConnection() );
}
catch ( SQLException se )
{
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>