Author: sback
Date: 2007-08-27 15:17:37 +0000 (Mon, 27 Aug 2007)
New Revision: 14888

Modified:
   trunk/freenet/test/freenet/support/LRUHashtableTest.java
Log:
New test added, a comment fixed

Modified: trunk/freenet/test/freenet/support/LRUHashtableTest.java
===================================================================
--- trunk/freenet/test/freenet/support/LRUHashtableTest.java    2007-08-27 
15:07:05 UTC (rev 14887)
+++ trunk/freenet/test/freenet/support/LRUHashtableTest.java    2007-08-27 
15:17:37 UTC (rev 14888)
@@ -175,7 +175,7 @@
        }

        /**
-        * Tests popKey() method pushing
+        * Tests popValue() method pushing
         * and popping objects and
         * verifying if their values are correctly 
         * (in a FIFO manner) fetched and the
@@ -193,6 +193,16 @@
                //the HashTable must be empty
                assertNull(methodLRUht.popKey());
        }
+       
+       /**
+        * Tests popValue() method
+        * popping a value from an empty
+        * LRUHashtable.
+        */
+       public void testPopValueFromEmpty() {
+               LRUHashtable methodLRUht = new LRUHashtable();
+               assertNull(methodLRUht.popValue());
+       }

        /**
         * Tests peekValue() method pushing


Reply via email to