32 |
|
try { |
33 |
|
updaterFor("y"); |
34 |
|
shouldThrow(); |
35 |
< |
} catch (RuntimeException success) {} |
35 |
> |
} catch (RuntimeException success) { |
36 |
> |
assertTrue(success.getCause() != null); |
37 |
> |
} |
38 |
|
} |
39 |
|
|
40 |
|
/** |
41 |
< |
* construction with field not of given type throws RuntimeException |
41 |
> |
* construction with field not of given type throws IllegalArgumentException |
42 |
|
*/ |
43 |
|
public void testConstructor2() { |
44 |
|
try { |
45 |
|
updaterFor("z"); |
46 |
|
shouldThrow(); |
47 |
< |
} catch (RuntimeException success) {} |
47 |
> |
} catch (IllegalArgumentException success) {} |
48 |
|
} |
49 |
|
|
50 |
|
/** |
51 |
< |
* construction with non-volatile field throws RuntimeException |
51 |
> |
* construction with non-volatile field throws IllegalArgumentException |
52 |
|
*/ |
53 |
|
public void testConstructor3() { |
54 |
|
try { |
55 |
|
updaterFor("w"); |
56 |
|
shouldThrow(); |
57 |
< |
} catch (RuntimeException success) {} |
57 |
> |
} catch (IllegalArgumentException success) {} |
58 |
|
} |
59 |
|
|
60 |
|
/** |