remove isDependentSucceeded in whenComplete

This commit is contained in:
huanghongxun
2019-02-25 23:59:21 +08:00
parent eeef76594f
commit cae32cff4c
9 changed files with 27 additions and 24 deletions

View File

@@ -11,8 +11,8 @@ public class TaskTest {
Task.allOf(Task.runAsync(() -> {
throw new Exception();
}))
)).whenComplete(((isDependentSucceeded, exception) -> {
Assert.assertFalse(isDependentSucceeded);
)).whenComplete((exception -> {
Assert.assertFalse(exception == null);
})).test();
}
}