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