diff --git a/core/src/test/java/hudson/util/CopyOnWriteMapTest.java b/core/src/test/java/hudson/util/CopyOnWriteMapTest.java index 9e4f0dbba39cedb63a0e3feaa3da9e3df8dc8cb8..4a75976e32e2ad27ff03e0971450554f37f5bdf0 100644 --- a/core/src/test/java/hudson/util/CopyOnWriteMapTest.java +++ b/core/src/test/java/hudson/util/CopyOnWriteMapTest.java @@ -26,12 +26,13 @@ package hudson.util; import java.util.Comparator; import java.util.HashMap; import java.util.TreeMap; -import junit.framework.TestCase; +import static org.junit.Assert.*; +import org.junit.Test; /** * @author Mike Dillon, Alan Harder */ -public class CopyOnWriteMapTest extends TestCase { +public class CopyOnWriteMapTest { public static final class HashData { CopyOnWriteMap.Hash map1 = new CopyOnWriteMap.Hash(); HashMap map2 = new HashMap(); @@ -40,7 +41,7 @@ public class CopyOnWriteMapTest extends TestCase { /** * Verify that serialization form of CopyOnWriteMap.Hash and HashMap are the same. */ - public void testHashSerialization() throws Exception { + @Test public void hashSerialization() throws Exception { HashData td = new HashData(); XStream2 xs = new XStream2(); @@ -82,7 +83,7 @@ public class CopyOnWriteMapTest extends TestCase { * Verify that an empty CopyOnWriteMap.Tree can be serialized, * and that serialization form is the same as a standard TreeMap. */ - public void testTreeSerialization() throws Exception { + @Test public void treeSerialization() throws Exception { TreeData td = new TreeData(); XStream2 xs = new XStream2();