leosutic    2004/02/25 15:24:47

  Modified:    component/src/test/org/apache/avalon/excalibur/component/test
                        ExcaliburComponentManagerTestCase.java
  Log:
  Updated test case to only cover deatures we should have.
  See http://marc.theaimsgroup.com/?t=106779872700001&r=1&w=2 for
  justification.
  
  Revision  Changes    Path
  1.4       +8 -2      
avalon-excalibur/component/src/test/org/apache/avalon/excalibur/component/test/ExcaliburComponentManagerTestCase.java
  
  Index: ExcaliburComponentManagerTestCase.java
  ===================================================================
  RCS file: 
/home/cvs/avalon-excalibur/component/src/test/org/apache/avalon/excalibur/component/test/ExcaliburComponentManagerTestCase.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ExcaliburComponentManagerTestCase.java    25 Feb 2004 10:33:10 -0000      1.3
  +++ ExcaliburComponentManagerTestCase.java    25 Feb 2004 23:24:46 -0000      1.4
  @@ -144,7 +144,13 @@
   
           m_manager.dispose();
   
  -        checkNumberOfDisposals( momClass, dadClass, kidClass );
  +        // Auto disposal for badly behaved components aren't guaranteed.
  +        // This done to fix: http://marc.theaimsgroup.com/?t=106779872700001&r=1&w=2
  +        if( momClass.getName().indexOf( "Good" ) > -1 &&
  +            dadClass.getName().indexOf( "Good" ) > -1 ) 
  +        {
  +            checkNumberOfDisposals( momClass, dadClass, kidClass );
  +        }
       }
   
       private void checkNumberOfDisposals( Class momClass, Class dadClass, Class 
kidClass )
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to