982 |
|
* If a whenComplete action throws an exception when triggered by |
983 |
|
* a normal completion, it completes exceptionally |
984 |
|
*/ |
985 |
< |
public void testWhenComplete_actionFailed() { |
985 |
> |
public void testWhenComplete_sourceCompletedNormallyActionFailed() { |
986 |
|
for (boolean createIncomplete : new boolean[] { true, false }) |
987 |
|
for (ExecutionMode m : ExecutionMode.values()) |
988 |
|
for (Integer v1 : new Integer[] { 1, null }) |
1152 |
|
assertEquals(1, a.get()); |
1153 |
|
}} |
1154 |
|
|
1155 |
+ |
/** |
1156 |
+ |
* If a "handle action" throws an exception when triggered by |
1157 |
+ |
* a normal completion, it completes exceptionally |
1158 |
+ |
*/ |
1159 |
|
public void testHandle_sourceCompletedNormallyActionFailed() { |
1160 |
|
for (ExecutionMode m : ExecutionMode.values()) |
1161 |
|
for (boolean createIncomplete : new boolean[] { true, false }) |