avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject cvs commit: avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test ResourceLimitingPoolMultithreadTestCase.java
Date Thu, 26 Feb 2004 14:21:18 GMT
niclas      2004/02/26 06:21:17

  Modified:    pool     project.xml
               pool/src/test/org/apache/avalon/excalibur/pool/test
                        ResourceLimitingPoolMultithreadTestCase.java
  Log:
  Fixed up that testcases failed. Could be due to changes in JunitPerf.
  
  Revision  Changes    Path
  1.3       +1 -1      avalon-excalibur/pool/project.xml
  
  Index: project.xml
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/pool/project.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- project.xml	21 Feb 2004 15:38:47 -0000	1.2
  +++ project.xml	26 Feb 2004 14:21:17 -0000	1.3
  @@ -50,7 +50,7 @@
           <dependency>
               <!-- testing only -->
               <id>excalibur-testcase</id>
  -            <version>1.1</version>
  +            <version>1.2</version>
               <groupId>excalibur-component</groupId>
           </dependency>
           <dependency>
  
  
  
  1.4       +13 -7     avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test/ResourceLimitingPoolMultithreadTestCase.java
  
  Index: ResourceLimitingPoolMultithreadTestCase.java
  ===================================================================
  RCS file: /home/cvs/avalon-excalibur/pool/src/test/org/apache/avalon/excalibur/pool/test/ResourceLimitingPoolMultithreadTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ResourceLimitingPoolMultithreadTestCase.java	25 Feb 2004 10:33:18 -0000	1.3
  +++ ResourceLimitingPoolMultithreadTestCase.java	26 Feb 2004 14:21:17 -0000	1.4
  @@ -99,33 +99,39 @@
   
       public static void oneTimeTearDown() throws Exception
       {
  -        // The timing of this test makes it so the pool should grow to 4 elements
  -        assertEquals( "1) Pool Ready Size", 4, m_pool.getReadySize() );
  -        assertEquals( "1) Pool Size", 4, m_pool.getSize() );
  +        // The timing of this test makes it so the pool should grow to 5 elements
  +        assertEquals( "1) Pool Ready Size", 5, m_pool.getReadySize() );
  +        assertEquals( "1) Pool Size", 5, m_pool.getSize() );
   
           // Make sure that each of the objects are uniqe by checking them all back out.
           Poolable p1 = m_pool.get();
           Poolable p2 = m_pool.get();
           Poolable p3 = m_pool.get();
           Poolable p4 = m_pool.get();
  +        Poolable p5 = m_pool.get();
   
           assertEquals( "2) Pool Ready Size", 0, m_pool.getReadySize() );
  -        assertEquals( "2) Pool Size", 4, m_pool.getSize() );
  +        assertEquals( "2) Pool Size", 5, m_pool.getSize() );
   
           assertTrue( "p1 != p2", p1 != p2 );
           assertTrue( "p1 != p3", p1 != p3 );
           assertTrue( "p1 != p4", p1 != p4 );
  +        assertTrue( "p1 != p4", p1 != p5 );
           assertTrue( "p2 != p3", p2 != p3 );
           assertTrue( "p2 != p4", p2 != p4 );
  +        assertTrue( "p2 != p4", p2 != p5 );
           assertTrue( "p3 != p4", p3 != p4 );
  +        assertTrue( "p3 != p4", p3 != p5 );
  +        assertTrue( "p3 != p4", p4 != p5 );
   
           m_pool.put( p1 );
           m_pool.put( p2 );
           m_pool.put( p3 );
           m_pool.put( p4 );
  +        m_pool.put( p5 );
   
  -        assertEquals( "3) Pool Ready Size", 4, m_pool.getReadySize() );
  -        assertEquals( "3) Pool Size", 4, m_pool.getSize() );
  +        assertEquals( "3) Pool Ready Size", 5, m_pool.getReadySize() );
  +        assertEquals( "3) Pool Size", 5, m_pool.getSize() );
   
           m_pool.dispose();
   
  
  
  

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


Mime
View raw message