logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From psm...@apache.org
Subject cvs commit: jakarta-log4j/tests/src/java/org/apache/log4j/plugins PluginTestCase.java
Date Sun, 21 Sep 2003 21:54:19 GMT
psmith      2003/09/21 14:54:19

  Modified:    tests/src/java/org/apache/log4j/plugins PluginTestCase.java
  Log:
  This test was not succeeding because I accidently removed
  a reset method which reset a latch listener to a known state.
  
  A problem with the test code, rather than the code it was testing.
  
  Apologise.
  
  Revision  Changes    Path
  1.9       +1 -0      jakarta-log4j/tests/src/java/org/apache/log4j/plugins/PluginTestCase.java
  
  Index: PluginTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-log4j/tests/src/java/org/apache/log4j/plugins/PluginTestCase.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- PluginTestCase.java	18 Sep 2003 03:08:45 -0000	1.8
  +++ PluginTestCase.java	21 Sep 2003 21:54:19 -0000	1.9
  @@ -381,6 +381,7 @@
   		assertTrue("PluginListener stop latch should not be activated", !l.StopLatch);
   		assertTrue("PluginListener should be given reference to Plugin", e.getPlugin() == p);
   
  +        l.reset();
   		PluginRegistry.stopAllPlugins();
   		assertTrue("PluginListener should have been notified of stop", l.StopLatch);
   		assertTrue("PluginListener should not have been notified of start", !l.StartLatch);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org


Mime
View raw message