Author: j16sdiz
Date: 2009-02-13 14:07:03 +0000 (Fri, 13 Feb 2009)
New Revision: 25611

Modified:
   trunk/freenet/test/freenet/support/LRUQueueTest.java
Log:
junit test case

Modified: trunk/freenet/test/freenet/support/LRUQueueTest.java
===================================================================
--- trunk/freenet/test/freenet/support/LRUQueueTest.java        2009-02-13 
14:05:11 UTC (rev 25610)
+++ trunk/freenet/test/freenet/support/LRUQueueTest.java        2009-02-13 
14:07:03 UTC (rev 25611)
@@ -16,6 +16,7 @@
 package freenet.support;
 
 import java.util.Enumeration;
+
 import junit.framework.TestCase;
 
 /**
@@ -103,6 +104,13 @@
                        fail("Expected Exception Error Not Thrown!"); }
                catch (NullPointerException anException) {
                        assertNotNull(anException);     }
+
+               try {
+                       methodLRUQueue.pushLeast(null);
+                       fail("Expected Exception Error Not Thrown!");
+               } catch (NullPointerException anException) {
+                       assertNotNull(anException);
+               }
        }
        
        /**

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to