Author: j16sdiz
Date: 2009-02-22 11:21:27 +0000 (Sun, 22 Feb 2009)
New Revision: 25760

Modified:
   trunk/freenet/test/freenet/support/DoublyLinkedListImplTest.java
Log:
Update DoublyLinkedListImplTest, remove clone() test (bug 2512)

Modified: trunk/freenet/test/freenet/support/DoublyLinkedListImplTest.java
===================================================================
--- trunk/freenet/test/freenet/support/DoublyLinkedListImplTest.java    
2009-02-22 11:20:57 UTC (rev 25759)
+++ trunk/freenet/test/freenet/support/DoublyLinkedListImplTest.java    
2009-02-22 11:21:27 UTC (rev 25760)
@@ -150,25 +150,25 @@
                assertTrue("isEmpty()", list.isEmpty());
        }
 
-       public void testClone() {
-               DoublyLinkedList<T> list = new DoublyLinkedListImpl<T>();
-               for (int i = 0; i < 3; i++) {
-                       list.unshift(new T(i));
-               }
+       //      public void testClone() {
+       //              DoublyLinkedList<T> list = new 
DoublyLinkedListImpl<T>();
+       //              for (int i = 0; i < 3; i++) {
+       //                      list.unshift(new T(i));
+       //              }
+       //
+       //              DoublyLinkedList<T> listClone = list.clone();
+       //
+       //              for (int i = 2; i >= 0; i--) {
+       //                      T t = (T) list.shift();
+       //                      t.assertV(i);
+       //                      t.assertIsNotClone();
+       //
+       //                      T tc = (T) listClone.shift();
+       //                      tc.assertV(i);
+       //                      tc.assertIsClone();
+       //              }
+       //      }
 
-               DoublyLinkedList<T> listClone = list.clone();
-
-               for (int i = 2; i >= 0; i--) {
-                       T t = (T) list.shift();
-                       t.assertV(i);
-                       t.assertIsNotClone();
-
-                       T tc = (T) listClone.shift();
-                       tc.assertV(i);
-                       tc.assertIsClone();
-               }
-       }
-
        public void testShiftN() {
                DoublyLinkedList<T> list = new DoublyLinkedListImpl<T>();
 

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

Reply via email to