1
0

Rename test class

This commit is contained in:
Gary Gregory
2024-12-18 09:53:49 -05:00
parent 6a6fbbc243
commit 7b32e7cb94

View File

@@ -30,9 +30,9 @@ import junit.framework.TestCase;
public class WeakHashtableTestCase extends TestCase { public class WeakHashtableTestCase extends TestCase {
public static class StupidThread extends Thread { public static class TestThread extends Thread {
public StupidThread(final String name) { public TestThread(final String name) {
super(name); super(name);
} }
@@ -183,7 +183,7 @@ public class WeakHashtableTestCase extends TestCase {
for (int j=1; j <= OUTER_LOOP; j++) { for (int j=1; j <= OUTER_LOOP; j++) {
hashtable = new WeakHashtable(); hashtable = new WeakHashtable();
for (int i = 0; i < t.length; i++) { for (int i = 0; i < t.length; i++) {
t[i] = new StupidThread("Thread:" + i); t[i] = new TestThread("Thread:" + i);
t[i].setDaemon(true); // Otherwise we cannot exit t[i].setDaemon(true); // Otherwise we cannot exit
t[i].start(); t[i].start();
} }