public static void main (String[] args) throws Throwable { TestSuite theSuite; if (args.length > 0) { theSuite = new TestSuite (); for (int i = 0; i < args.length; i++) { theSuite.addTest (new TestMIntInt2ObjectMap (args[i])); } } else { theSuite = (TestSuite) suite (); } junit.textui.TestRunner.run (theSuite); }
public void testReverse () { MIntInt2ObjectMap map = new MIntInt2ObjectMap (); map.put (0, 2, "A"); map.put (2, 0, "a"); map.put (0, 5, "C"); map.put (3, 1, "D"); map.put (2, 0, "aa"); assertEquals (4, map.size ()); assertEquals ("A", map.get (0, 2)); assertEquals ("aa", map.get (2, 0)); }
public void testReverse () { MIntInt2ObjectMap map = new MIntInt2ObjectMap (); map.put (0, 2, "A"); map.put (2, 0, "a"); map.put (0, 5, "C"); map.put (3, 1, "D"); map.put (2, 0, "aa"); assertEquals (4, map.size ()); assertEquals ("A", map.get (0, 2)); assertEquals ("aa", map.get (2, 0)); }
public static void main (String[] args) throws Throwable { TestSuite theSuite; if (args.length > 0) { theSuite = new TestSuite (); for (int i = 0; i < args.length; i++) { theSuite.addTest (new TestMIntInt2ObjectMap (args[i])); } } else { theSuite = (TestSuite) suite (); } junit.textui.TestRunner.run (theSuite); }
public void testSerializable () throws IOException, ClassNotFoundException { MIntInt2ObjectMap map = new MIntInt2ObjectMap (); map.put (0, 2, "A"); map.put (2, 0, "a"); map.put (0, 5, "C"); map.put (3, 1, "D"); map.put (2, 0, "aa"); MIntInt2ObjectMap map2 = (MIntInt2ObjectMap) TestSerializable.cloneViaSerialization (map); assertEquals (4, map2.size ()); assertEquals ("A", map2.get (0, 2)); assertEquals ("aa", map2.get (2, 0)); } public static void main (String[] args) throws Throwable
public void testSerializable () throws IOException, ClassNotFoundException { MIntInt2ObjectMap map = new MIntInt2ObjectMap (); map.put (0, 2, "A"); map.put (2, 0, "a"); map.put (0, 5, "C"); map.put (3, 1, "D"); map.put (2, 0, "aa"); MIntInt2ObjectMap map2 = (MIntInt2ObjectMap) TestSerializable.cloneViaSerialization (map); assertEquals (4, map2.size ()); assertEquals ("A", map2.get (0, 2)); assertEquals ("aa", map2.get (2, 0)); } public static void main (String[] args) throws Throwable