commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1157589 - /commons/proper/jcs/trunk/src/test/org/apache/jcs/engine/memory/mru/MRUMemoryCacheUnitTest.java
Date Sun, 14 Aug 2011 18:09:45 GMT
Author: tv
Date: Sun Aug 14 18:09:44 2011
New Revision: 1157589

URL: http://svn.apache.org/viewvc?rev=1157589&view=rev
Log:
Fixed wrong start value. Has this test ever passed?

Modified:
    commons/proper/jcs/trunk/src/test/org/apache/jcs/engine/memory/mru/MRUMemoryCacheUnitTest.java

Modified: commons/proper/jcs/trunk/src/test/org/apache/jcs/engine/memory/mru/MRUMemoryCacheUnitTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/test/org/apache/jcs/engine/memory/mru/MRUMemoryCacheUnitTest.java?rev=1157589&r1=1157588&r2=1157589&view=diff
==============================================================================
--- commons/proper/jcs/trunk/src/test/org/apache/jcs/engine/memory/mru/MRUMemoryCacheUnitTest.java
(original)
+++ commons/proper/jcs/trunk/src/test/org/apache/jcs/engine/memory/mru/MRUMemoryCacheUnitTest.java
Sun Aug 14 18:09:44 2011
@@ -41,6 +41,7 @@ public class MRUMemoryCacheUnitTest
     extends TestCase
 {
     /** Test setup */
+    @Override
     public void setUp()
     {
         JCS.setConfigFilename( "/TestMRUCache.ccf" );
@@ -137,7 +138,7 @@ public class MRUMemoryCacheUnitTest
         }
 
         // Test that first items are not in the cache
-        for ( int i = max; i >= 0; i-- )
+        for ( int i = max-1; i >= 0; i-- )
         {
             String value = (String) cache.get( i + ":key" );
             assertNull( "Should not have value for key [" + i + ":key" + "] in the cache.",
value );



Mime
View raw message