Author: nextgens
Date: 2007-11-04 19:33:58 +0000 (Sun, 04 Nov 2007)
New Revision: 15686

Modified:
   trunk/freenet/test/freenet/support/SimpleFieldSetTest.java
Log:
Now the testcases actually works like it should (the new SFS has subkeys 
whereas the old one doesn't)

Modified: trunk/freenet/test/freenet/support/SimpleFieldSetTest.java
===================================================================
--- trunk/freenet/test/freenet/support/SimpleFieldSetTest.java  2007-11-04 
19:17:18 UTC (rev 15685)
+++ trunk/freenet/test/freenet/support/SimpleFieldSetTest.java  2007-11-04 
19:33:58 UTC (rev 15686)
@@ -175,6 +175,11 @@
                for (int i=0; i < SAMPLE_STRING_PAIRS.length; i++)
                        assertEquals(methodSFS.get(SAMPLE_STRING_PAIRS[i][0]),
                                        
SAMPLE_STRING_PAIRS[i][1]+methodAppendedString);
+               SimpleFieldSet nullSFS = new SimpleFieldSet(false);
+               nullSFS.putAllOverwrite(methodNewSFS);
+               for (int i=0; i < SAMPLE_STRING_PAIRS.length; i++)
+                       assertEquals(nullSFS.get(SAMPLE_STRING_PAIRS[i][0]),
+                                       
SAMPLE_STRING_PAIRS[i][1]+methodAppendedString);
        }

        /**


Reply via email to