From: Jeff R. <uph...@us...> - 2009-09-11 05:53:49
|
Update of /cvsroot/trove4j/trove/test/gnu/trove/map/hash In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv22295/test/gnu/trove/map/hash Modified Files: Tag: TROVE_3_WORKING THashMapTest.java Log Message: Remove obsolete test, suppress warnings. Index: THashMapTest.java =================================================================== RCS file: /cvsroot/trove4j/trove/test/gnu/trove/map/hash/Attic/THashMapTest.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** THashMapTest.java 9 Sep 2009 06:24:06 -0000 1.1.2.2 --- THashMapTest.java 11 Sep 2009 05:53:37 -0000 1.1.2.3 *************** *** 514,537 **** - // TODO: implement or move when primitive maps are implemented. - // public void testSerializablePrimitives() throws Exception { - // TIntIntHashMap mm = new TIntIntHashMap(); - // mm.put( 1, -1 ); - // mm.put( 0, 0 ); - // mm.put( 127, 68888 ); - // - // ByteArrayOutputStream baos = new ByteArrayOutputStream(); - // ObjectOutputStream oos = new ObjectOutputStream( baos ); - // oos.writeObject( mm ); - // - // ByteArrayInputStream bais = new ByteArrayInputStream( baos.toByteArray() ); - // ObjectInputStream ois = new ObjectInputStream( bais ); - // - // TIntIntHashMap mm2 = (TIntIntHashMap) ois.readObject(); - // - // assertEquals( mm, mm2 ); - // } - - public void testRetainEntries() throws Exception { ss_map.put( "a", "b" ); --- 514,517 ---- *************** *** 573,576 **** --- 553,557 ---- + @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"}) public void testBadlyWrittenKey() { THashMap<THashSetTest.Crap, Integer> map = new THashMap<THashSetTest.Crap, Integer>(); *************** *** 639,642 **** --- 620,624 ---- + @SuppressWarnings({"MismatchedQueryAndUpdateOfCollection"}) public void testMapEntrySetHashCode() { ss_map.put( "one", "foo" ); *************** *** 698,702 **** * once, I figure I'll leave it in. - RDE */ ! @SuppressWarnings({"ForLoopReplaceableByForEach"}) public void testProblematicRemove() { int[] to_add = new int[]{ --- 680,685 ---- * once, I figure I'll leave it in. - RDE */ ! @SuppressWarnings({"ForLoopReplaceableByForEach", ! "MismatchedQueryAndUpdateOfCollection"}) public void testProblematicRemove() { int[] to_add = new int[]{ *************** *** 938,941 **** --- 921,925 ---- + @SuppressWarnings({"ToArrayCallWithZeroLengthArrayArgument"}) public void testValuesToArray() { int element_count = 10; |