avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test ResourceLimitingPoolMultithreadMaxStrictBlockTestCase.java ResourceLimitingPoolMultithreadMaxStrictTestCase.java ResourceLimitingPoolMultithreadMaxTestCase.java
Date Tue, 16 Mar 2004 09:53:07 GMT
leif        2004/03/16 01:53:07

  Modified:    pool/src/test/org/apache/avalon/excalibur/pool/test
                        ResourceLimitingPoolMultithreadMaxStrictBlockTestCase.java
                        ResourceLimitingPoolMultithreadMaxStrictTestCase.java
                        ResourceLimitingPoolMultithreadMaxTestCase.java
  Log:
  Rework parameters of of the tests so that the tests are more brutal and thus do
  a better job of stressing the pool.
  
  Revision  Changes    Path
  1.5       +10 -4     avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test/ResourceLimitingPoolMultithreadMaxStrictBlockTestCase.java
  
  Index: ResourceLimitingPoolMultithreadMaxStrictBlockTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test/ResourceLimitingPoolMultithreadMaxStrictBlockTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ResourceLimitingPoolMultithreadMaxStrictBlockTestCase.java	28 Feb 2004 11:47:22 -0000
1.4
  +++ ResourceLimitingPoolMultithreadMaxStrictBlockTestCase.java	16 Mar 2004 09:53:07 -0000
1.5
  @@ -61,9 +61,9 @@
       {
           TestSuite suite = new TestSuite();
   
  -        Timer timer = new ConstantTimer( 100 );
  -        int maxUsers = 10;
  -        int iterations = 10;
  +        Timer timer = new ConstantTimer( 10 );
  +        int maxUsers = 20;
  +        int iterations = 50;
           long maxElapsedTime = 20000;
   
           Test testCase = new ResourceLimitingPoolMultithreadMaxStrictBlockTestCase( "testGetPut"
);
  @@ -98,6 +98,12 @@
   
       public static void oneTimeTearDown() throws Exception
       {
  +        // Dump the logger.
  +        System.out.println( "Debug output of the logger.  "
  +            + "This is useful for debugging problems if the test fails." );
  +        System.out.println( m_logger.toString() );
  +        System.out.println();
  +        
           // The timing of this test makes it so the pool should grow to 4 elements
           assertEquals( "1) Pool Ready Size", 3, m_pool.getReadySize() );
           assertEquals( "1) Pool Size", 3, m_pool.getSize() );
  
  
  
  1.5       +10 -4     avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test/ResourceLimitingPoolMultithreadMaxStrictTestCase.java
  
  Index: ResourceLimitingPoolMultithreadMaxStrictTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test/ResourceLimitingPoolMultithreadMaxStrictTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ResourceLimitingPoolMultithreadMaxStrictTestCase.java	28 Feb 2004 11:47:22 -0000	1.4
  +++ ResourceLimitingPoolMultithreadMaxStrictTestCase.java	16 Mar 2004 09:53:07 -0000	1.5
  @@ -61,9 +61,9 @@
       {
           TestSuite suite = new TestSuite();
   
  -        Timer timer = new ConstantTimer( 100 );
  -        int maxUsers = 50;
  -        int iterations = 10;
  +        Timer timer = new ConstantTimer( 10 );
  +        int maxUsers = 20;
  +        int iterations = 50;
           long maxElapsedTime = 20000;
   
           Test testCase = new ResourceLimitingPoolMultithreadMaxStrictTestCase( "testGetPut"
);
  @@ -98,6 +98,12 @@
   
       public static void oneTimeTearDown() throws Exception
       {
  +        // Dump the logger.
  +        System.out.println( "Debug output of the logger.  "
  +            + "This is useful for debugging problems if the test fails." );
  +        System.out.println( m_logger.toString() );
  +        System.out.println();
  +        
           // The timing of this test makes it so the pool should grow to 4 elements
           assertEquals( "1) Pool Ready Size", 3, m_pool.getReadySize() );
           assertEquals( "1) Pool Size", 3, m_pool.getSize() );
  
  
  
  1.5       +10 -4     avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test/ResourceLimitingPoolMultithreadMaxTestCase.java
  
  Index: ResourceLimitingPoolMultithreadMaxTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test/ResourceLimitingPoolMultithreadMaxTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ResourceLimitingPoolMultithreadMaxTestCase.java	28 Feb 2004 11:47:22 -0000	1.4
  +++ ResourceLimitingPoolMultithreadMaxTestCase.java	16 Mar 2004 09:53:07 -0000	1.5
  @@ -62,9 +62,9 @@
       {
           TestSuite suite = new TestSuite();
   
  -        Timer timer = new ConstantTimer( 100 );
  -        int maxUsers = 50;
  -        int iterations = 10;
  +        Timer timer = new ConstantTimer( 10 );
  +        int maxUsers = 20;
  +        int iterations = 50;
           long maxElapsedTime = 20000;
   
           Test testCase = new ResourceLimitingPoolMultithreadMaxTestCase( "testGetPut" );
  @@ -99,6 +99,12 @@
   
       public static void oneTimeTearDown() throws Exception
       {
  +        // Dump the logger.
  +        System.out.println( "Debug output of the logger.  "
  +            + "This is useful for debugging problems if the test fails." );
  +        System.out.println( m_logger.toString() );
  +        System.out.println();
  +        
           // The timing of this test makes it so the pool should grow to 4 elements
           assertEquals( "1) Pool Ready Size", 3, m_pool.getReadySize() );
           assertEquals( "1) Pool Size", 3, m_pool.getSize() );
  
  
  

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


Mime
View raw message