From: Artur Signell Date: Thu, 22 Mar 2012 11:57:59 +0000 (+0200) Subject: KeyMapper now uses HashMap instead of Hashtable internally - fixed test X-Git-Tag: 7.0.0.alpha2~243 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9fda5bc99b81017a30476bfc103ee48497bb6f8f;p=vaadin-framework.git KeyMapper now uses HashMap instead of Hashtable internally - fixed test --- diff --git a/tests/server-side/com/vaadin/tests/server/TestKeyMapper.java b/tests/server-side/com/vaadin/tests/server/TestKeyMapper.java index ca8ec763c2..4f5f0b1431 100644 --- a/tests/server-side/com/vaadin/tests/server/TestKeyMapper.java +++ b/tests/server-side/com/vaadin/tests/server/TestKeyMapper.java @@ -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());