26 |
|
@summary Test for an illegalargumentexception on loadFactor |
27 |
|
*/ |
28 |
|
|
29 |
< |
import java.util.*; |
29 |
> |
import java.util.HashMap; |
30 |
> |
import java.util.HashSet; |
31 |
> |
import java.util.Hashtable; |
32 |
> |
import java.util.Map; |
33 |
> |
import java.util.Set; |
34 |
> |
import java.util.WeakHashMap; |
35 |
|
|
36 |
|
/** |
37 |
|
* This class tests to see if creating a hash table with an |
39 |
|
*/ |
40 |
|
public class IllegalLoadFactor { |
41 |
|
|
42 |
< |
public static void main(String argv[]) throws Exception { |
42 |
> |
public static void main(String[] args) throws Exception { |
43 |
|
boolean testSucceeded = false; |
44 |
|
try { |
45 |
|
// this should generate an IllegalArgumentException |