From f63d3ec6176a8ef7cdf6cb2d16532b7bc122091a Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Mon, 11 May 2020 15:22:13 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E4=BF=AE=E6=94=B9=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=8C=87=E5=AE=9A=E8=83=BD=E5=8A=9B=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=A4=84=E7=BD=AE=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=92=8C=E8=8E=B7=E5=8F=96=E5=A4=84=E7=BD=AE=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E8=AF=A6=E7=BB=86=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81=E4=B8=BAERR=5FNOSUCHTASK=202.=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86=E5=86=92?= =?UTF-8?q?=E7=83=9F=E6=B5=8B=E8=AF=95=E4=B8=AD=E6=96=AD=E8=A8=80=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/dispose/controller/DisposeTaskController.java | 8 ++++---- .../com/dispose/controller/TaskControllerSmokeTest.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/dispose/controller/DisposeTaskController.java b/src/main/java/com/dispose/controller/DisposeTaskController.java index 59ad3fea..3c9c7a88 100644 --- a/src/main/java/com/dispose/controller/DisposeTaskController.java +++ b/src/main/java/com/dispose/controller/DisposeTaskController.java @@ -483,8 +483,8 @@ public class DisposeTaskController { NodeTaskData taskData = new NodeTaskData(); rspInfo.getItems().add(taskData); taskData.setId(v); - taskData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode()); - taskData.setMessage(ErrorCode.ERR_NOSUCHDEVICE.getMsg()); + taskData.setStatus(ErrorCode.ERR_NOSUCHTASK.getCode()); + taskData.setMessage(ErrorCode.ERR_NOSUCHTASK.getMsg()); taskData.setTaskArray(null); }); } @@ -555,8 +555,8 @@ public class DisposeTaskController { taskData.setId("-1"); taskData.setStartTime(0); taskData.setDisposeTime(0); - taskData.setStatus(ErrorCode.ERR_NOSUCHDEVICE.getCode()); - taskData.setMessage(ErrorCode.ERR_NOSUCHDEVICE.getMsg()); + taskData.setStatus(ErrorCode.ERR_NOSUCHTASK.getCode()); + taskData.setMessage(ErrorCode.ERR_NOSUCHTASK.getMsg()); }); } diff --git a/src/test/java/com/dispose/controller/TaskControllerSmokeTest.java b/src/test/java/com/dispose/controller/TaskControllerSmokeTest.java index 1e23a958..d5225baa 100644 --- a/src/test/java/com/dispose/controller/TaskControllerSmokeTest.java +++ b/src/test/java/com/dispose/controller/TaskControllerSmokeTest.java @@ -208,8 +208,8 @@ public class TaskControllerSmokeTest extends InitTestEnvironment { if (task.getStatus() == 0) { Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode())); - } else if (task.getStatus() == 19) { - Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHDEVICE.getCode())); + } else if (task.getStatus() == 30) { + Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_NOSUCHTASK.getCode())); } } }