1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Removed unused imports.

This commit is contained in:
Sergey Prigogin 2008-01-20 20:33:30 +00:00
parent 617c5a8476
commit c847fa362e

View file

@ -10,9 +10,7 @@
*******************************************************************************/
package org.eclipse.cdt.core.parser.tests.ast2;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import junit.framework.TestCase;
@ -40,8 +38,6 @@ public class CharArrayMapTest extends TestCase {
}
}
public void disabled_testPerformance() {
final int iterations = 10000;
// insert tons of keys
@ -61,7 +57,6 @@ public class CharArrayMapTest extends TestCase {
assertTrue(oldMapTime > mapTime);
}
private static long timeMap(char[][] keys) {
long start = System.currentTimeMillis();
CharArrayMap<Integer> map = new CharArrayMap<Integer>(keys.length);
@ -75,7 +70,6 @@ public class CharArrayMapTest extends TestCase {
return System.currentTimeMillis() - start;
}
private static long timeOldMap(char[][] keys) {
long start = System.currentTimeMillis();
CharArrayObjectMap oldMap = new CharArrayObjectMap(keys.length);
@ -89,7 +83,6 @@ public class CharArrayMapTest extends TestCase {
return System.currentTimeMillis() - start;
}
public void testBasicUsage1() {
char[] key1 = "first key".toCharArray();
char[] key2 = "second key".toCharArray();
@ -166,7 +159,6 @@ public class CharArrayMapTest extends TestCase {
assertFalse(map.containsValue(100));
}
public void testBasicUsage2() {
char[] chars = "pantera, megadeth, soulfly, metallica, in flames, lamb of god, carcass".toCharArray();
@ -188,7 +180,6 @@ public class CharArrayMapTest extends TestCase {
keys[5] = "lamb of god".toCharArray();
keys[6] = "carcass".toCharArray();
CharArrayMap<Integer> map = new CharArrayMap<Integer>();
assertTrue(map.isEmpty());
assertEquals(0, map.size());
@ -241,13 +232,11 @@ public class CharArrayMapTest extends TestCase {
assertEquals(0, map.size());
}
public void testProperFail() {
char[] hello = "hello".toCharArray();
CharArrayMap<Integer> map = new CharArrayMap<Integer>();
Integer value = new Integer(9);
try {
map.put(null, value);
fail();
@ -268,7 +257,6 @@ public class CharArrayMapTest extends TestCase {
fail();
} catch(IndexOutOfBoundsException _) {}
try {
map.get(null);
fail();
@ -289,7 +277,6 @@ public class CharArrayMapTest extends TestCase {
fail();
} catch(IndexOutOfBoundsException _) {}
try {
map.remove(null);
fail();
@ -310,7 +297,6 @@ public class CharArrayMapTest extends TestCase {
fail();
} catch(IndexOutOfBoundsException _) {}
try {
map.containsKey(null);
fail();
@ -331,7 +317,6 @@ public class CharArrayMapTest extends TestCase {
fail();
} catch(IndexOutOfBoundsException _) {}
try {
new CharArrayMap<Integer>(-1);
} catch(IllegalArgumentException _) {}