/* Copyright 2006 The Apache Software Foundation or its licensors, as applicable
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.harmony.luni.tests.java.util;

import java.util.HashMap;

import junit.framework.TestCase;
import tests.util.SerializationTester;

public class HashMapTest extends TestCase {
    public void test_serialization() throws Exception {
        HashMap<String, String> hm = new HashMap<String, String>();
        hm.put("key", "value");
        SerializationTester.assertEquals(hm);
    }

    public void test_serializationCompatability() throws Exception {
        HashMap<String, String> hm = new HashMap<String, String>();
        hm.put("key", "value");
        SerializationTester.assertCompabilityEquals(hm,
                "serialization/java/util/HashMapTest.golden.ser");
    }
}

@@ -73,22 +73,20 @@
 plicable
-%0D
 %0A * 
-%0D
 %0A * Lice
@@ -144,17 +144,16 @@
 cense%22);
-%0D
 %0A * you 
@@ -212,17 +212,16 @@
 License.
-%0D
 %0A * You 
@@ -255,22 +255,20 @@
 cense at
-%0D
 %0A * 
-%0D
 %0A *     
@@ -313,14 +313,12 @@
 -2.0
-%0D
 %0A * 
-%0D
 %0A * 
@@ -384,17 +384,16 @@
 software
-%0D
 %0A * dist
@@ -453,17 +453,16 @@
 %22 BASIS,
-%0D
 %0A * WITH
@@ -529,17 +529,16 @@
 implied.
-%0D
 %0A * See 
@@ -600,17 +600,16 @@
 ions and
-%0D
 %0A * limi
@@ -638,16 +638,13 @@
 nse.
-%0D
 %0A */
-%0D%0A%0D
+%0A
 %0Apac
@@ -688,19 +688,17 @@
 va.util;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -715,19 +715,17 @@
 HashMap;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -749,17 +749,16 @@
 estCase;
-%0D
 %0Aimport 
@@ -788,19 +788,17 @@
 nTester;
-%0D%0A%0D
+%0A
 %0Apublic 
@@ -833,17 +833,16 @@
 stCase %7B
-%0D
 %0A    pub
@@ -881,33 +881,32 @@
 rows Exception %7B
-%0D
 %0A        HashMap
@@ -949,33 +949,32 @@
 ring, String%3E();
-%0D
 %0A        hm.put(
@@ -981,33 +981,32 @@
 %22key%22, %22value%22);
-%0D
 %0A        Seriali
@@ -1039,18 +1039,15 @@
 hm);
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A   
@@ -1111,17 +1111,16 @@
 eption %7B
-%0D
 %0A       
@@ -1179,17 +1179,16 @@
 ring%3E();
-%0D
 %0A       
@@ -1211,17 +1211,16 @@
 value%22);
-%0D
 %0A       
@@ -1267,17 +1267,16 @@
 uals(hm,
-%0D
 %0A       
@@ -1338,16 +1338,13 @@
 r%22);
-%0D
 %0A    %7D
-%0D
 %0A%7D
-%0D
 %0A

Set eol-style=native