From 26cfc8cd2f882a970ba97f39a18ab21f346a14a5 Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Wed, 2 Sep 2020 16:24:22 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E4=BF=AE=E6=94=B9manager?= =?UTF-8?q?=E5=B1=82=E8=AE=BE=E5=A4=87=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E7=9A=84=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/manager/DisposeTaskManagerTest.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/test/java/com/dispose/test/manager/DisposeTaskManagerTest.java b/src/test/java/com/dispose/test/manager/DisposeTaskManagerTest.java index 6acf6864..74f22d85 100644 --- a/src/test/java/com/dispose/test/manager/DisposeTaskManagerTest.java +++ b/src/test/java/com/dispose/test/manager/DisposeTaskManagerTest.java @@ -73,13 +73,13 @@ public class DisposeTaskManagerTest { log.info("runningResult-->{}", runningResult); -// if (v.getCurrentStatus() == DisposeTaskStatus.TASK_FINISHED -// || v.getCurrentStatus() == DisposeTaskStatus.TASK_CANCELED -// || v.getCurrentStatus() == DisposeTaskStatus.TASK_EXPIRED) { -// Assert.assertFalse(runningResult); -// } else { -// Assert.assertTrue(runningResult); -// } + if (v.getCurrentStatus() == DisposeTaskStatus.TASK_FINISHED + || v.getCurrentStatus() == DisposeTaskStatus.TASK_CANCELED + || v.getCurrentStatus() == DisposeTaskStatus.TASK_EXPIRED) { + Assert.assertNull(runningResult); + } else { + Assert.assertNotNull(runningResult); + } }); } @@ -188,7 +188,6 @@ public class DisposeTaskManagerTest { Assert.assertNotEquals(taskList.size(), 0); }else { Assert.assertNull(task); - Assert.assertEquals(taskList.size(), 0); } }