]> source.dussan.org Git - vaadin-framework.git/commitdiff
KeyMapper now uses HashMap instead of Hashtable internally - fixed test
authorArtur Signell <artur@vaadin.com>
Thu, 22 Mar 2012 11:57:59 +0000 (13:57 +0200)
committerArtur Signell <artur@vaadin.com>
Thu, 22 Mar 2012 18:07:21 +0000 (20:07 +0200)
tests/server-side/com/vaadin/tests/server/TestKeyMapper.java

index ca8ec763c290657c01e7a9bbd3b47681164a82ed..4f5f0b14317592446ac5ceb9eae13a5343975f73 100644 (file)
@@ -1,7 +1,7 @@
 package com.vaadin.tests.server;
 
 import java.lang.reflect.Field;
-import java.util.Hashtable;
+import java.util.HashMap;
 
 import junit.framework.TestCase;
 
@@ -89,8 +89,8 @@ public class TestKeyMapper extends TestCase {
             f1.setAccessible(true);
             f2.setAccessible(true);
 
-            Hashtable<?, ?> h1 = (Hashtable<?, ?>) f1.get(mapper);
-            Hashtable<?, ?> h2 = (Hashtable<?, ?>) f2.get(mapper);
+            HashMap<?, ?> h1 = (HashMap<?, ?>) f1.get(mapper);
+            HashMap<?, ?> h2 = (HashMap<?, ?>) f2.get(mapper);
 
             assertEquals(i, h1.size());
             assertEquals(i, h2.size());