33 |
|
try { |
34 |
|
updaterFor("y"); |
35 |
|
shouldThrow(); |
36 |
< |
} catch (RuntimeException success) {} |
36 |
> |
} catch (RuntimeException success) { |
37 |
> |
assertTrue(success.getCause() != null); |
38 |
> |
} |
39 |
|
} |
40 |
|
|
41 |
|
/** |
49 |
|
} |
50 |
|
|
51 |
|
/** |
52 |
< |
* Constructor with non-volatile field throws exception |
52 |
> |
* Constructor 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 |
|
/** |