--- jsr166/src/test/tck/EntryTest.java 2010/09/16 00:52:49 1.6 +++ jsr166/src/test/tck/EntryTest.java 2015/04/25 04:55:30 1.12 @@ -1,17 +1,18 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain + * http://creativecommons.org/publicdomain/zero/1.0/ */ -import junit.framework.*; -import java.util.*; -import java.util.concurrent.*; -import java.io.*; +import java.util.AbstractMap; +import java.util.Map; + +import junit.framework.Test; +import junit.framework.TestSuite; public class EntryTest extends JSR166TestCase { public static void main(String[] args) { - junit.textui.TestRunner.run(suite()); + main(suite(), args); } public static Test suite() { return new TestSuite(EntryTest.class); @@ -22,7 +23,6 @@ public class EntryTest extends JSR166Tes static final String k2 = "2"; static final String v2 = "b"; - /** * A new SimpleEntry(k, v) holds k, v. */ @@ -41,7 +41,6 @@ public class EntryTest extends JSR166Tes assertEquals(v1, s.getValue()); } - /** * A new SimpleEntry(entry(k, v)) holds k, v. */ @@ -102,7 +101,6 @@ public class EntryTest extends JSR166Tes assertFalse(s2.equals(s)); } - /** * getValue returns last setValue for SimpleEntry */ @@ -119,7 +117,7 @@ public class EntryTest extends JSR166Tes /** * setValue for SimpleImmutableEntry throws UnsupportedOperationException */ - public void testsetValue2() { + public void testSetValue2() { Map.Entry s2 = new AbstractMap.SimpleImmutableEntry(k1, v1); Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); assertEquals(k1, s.getKey());