27 |
|
* @summary Test for illegal argument exception |
28 |
|
*/ |
29 |
|
|
30 |
< |
import java.util.*; |
30 |
> |
import java.util.Vector; |
31 |
|
|
32 |
|
/** |
33 |
|
* This is a simple test class created to check for |
36 |
|
*/ |
37 |
|
public class IllegalConstructorArgs { |
38 |
|
|
39 |
< |
public static void main(String argv[]) { |
40 |
< |
int testSucceeded=0; |
39 |
> |
public static void main(String[] args) { |
40 |
> |
int testSucceeded=0; |
41 |
|
|
42 |
|
try { |
43 |
< |
// this should generate an IllegalArgumentException |
44 |
< |
Vector bad1 = new Vector(-100, 10); |
43 |
> |
// this should generate an IllegalArgumentException |
44 |
> |
Vector bad1 = new Vector(-100, 10); |
45 |
|
} |
46 |
|
catch (IllegalArgumentException e1) { |
47 |
|
testSucceeded =1; |