Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
William Drai committed Jun 17, 2014
1 parent 1c61b4d commit 7897bd6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import java.io.IOException;
import java.io.PrintStream;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.LinkedHashMap;
import java.util.Map;
Expand Down Expand Up @@ -99,7 +98,7 @@ public void testGenericCollection() throws ClassNotFoundException, IOException {

map = new TreeMap<Object, Object>();
clone = serializeDeserialize(map);
Assert.assertEquals(HashMap.class, clone.getClass());
Assert.assertEquals(TreeMap.class, clone.getClass());
Assert.assertEquals(map.size(), clone.size());
for (Map.Entry<Object, Object> entry : map.entrySet()) {
Assert.assertTrue(clone.containsKey(entry.getKey()));
Expand All @@ -111,7 +110,7 @@ public void testGenericCollection() throws ClassNotFoundException, IOException {
map.put("bla", Boolean.TRUE);
map.put("blu", Boolean.FALSE);
clone = serializeDeserialize(map);
Assert.assertEquals(HashMap.class, clone.getClass());
Assert.assertEquals(TreeMap.class, clone.getClass());
Assert.assertEquals(map.size(), clone.size());
for (Map.Entry<Object, Object> entry : map.entrySet()) {
Assert.assertTrue(clone.containsKey(entry.getKey()));
Expand Down

0 comments on commit 7897bd6

Please sign in to comment.