final static int hmSize = 1000;
- static Object[] objArray;
-
- static Object[] objArray2;
- {
- objArray = new Object[hmSize];
- objArray2 = new Object[hmSize];
- for (int i = 0; i < objArray.length; i++) {
- objArray[i] = new Integer(i);
- objArray2[i] = objArray[i].toString();
- }
- }
+ Object[] objArray;
+ Object[] objArray2;
+
/**
* @tests java.util.HashMap#HashMap()
*/
* is called before a test is executed.
*/
protected void setUp() {
+ objArray = new Object[hmSize];
+ objArray2 = new Object[hmSize];
+ for (int i = 0; i < objArray.length; i++) {
+ objArray[i] = new Integer(i);
+ objArray2[i] = objArray[i].toString();
+ }
+
hm = new HashMap();
for (int i = 0; i < objArray.length; i++)
hm.put(objArray2[i], objArray[i]);
* method is called after a test is executed.
*/
protected void tearDown() {
+ hm = null;
+ objArray = null;
+ objArray2 = null;
}
}