diff --git a/src/test/java/com/dispose/test/controller/TaskControllerTest.java b/src/test/java/com/dispose/test/controller/TaskControllerTest.java index 1fcb9527..a97f03b1 100644 --- a/src/test/java/com/dispose/test/controller/TaskControllerTest.java +++ b/src/test/java/com/dispose/test/controller/TaskControllerTest.java @@ -756,10 +756,9 @@ public class TaskControllerTest extends InitTestEnvironment { */ @Test public void t6_getNodeAllTask() throws Exception { - GetTaskReq reqData = GetTaskReq.builder() - .id(new String[]{String.valueOf(getExistsDeviceId()), "123"}) - .type(0) - .build(); + GetTaskReq reqData = new GetTaskReq(); + reqData.setId(new String[]{String.valueOf(getExistsDeviceId()), "123"}); + reqData.setType(0); Long reqTimeStamp = System.currentTimeMillis(); ProtocolReqDTO reqInfo = new ProtocolReqDTO(); @@ -823,10 +822,9 @@ public class TaskControllerTest extends InitTestEnvironment { */ @Test public void t6_getNodeAllTaskAll() throws Exception { - GetTaskReq reqData = GetTaskReq.builder() - .id(new String[]{}) - .type(0) - .build(); + GetTaskReq reqData = new GetTaskReq(); + reqData.setId(new String[]{}); + reqData.setType(0); Long reqTimeStamp = System.currentTimeMillis(); ProtocolReqDTO reqInfo = new ProtocolReqDTO();