parent
a96306fc46
commit
964ce4b318
|
@ -23,7 +23,6 @@ import com.dispose.pojo.vo.information.VersionListRsp;
|
||||||
import com.dispose.pojo.vo.information.VersionRsp;
|
import com.dispose.pojo.vo.information.VersionRsp;
|
||||||
import com.dispose.service.DisposeNodeManager;
|
import com.dispose.service.DisposeNodeManager;
|
||||||
import com.dispose.service.UserAccountService;
|
import com.dispose.service.UserAccountService;
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.FixMethodOrder;
|
import org.junit.FixMethodOrder;
|
||||||
|
@ -1022,11 +1021,7 @@ public class DeviceNodeInfoControllerTest extends InitTestEnvironment {
|
||||||
Assert.assertNotNull(d.getId());
|
Assert.assertNotNull(d.getId());
|
||||||
|
|
||||||
// no task
|
// no task
|
||||||
if (d.getTaskArray().size() == 0) {
|
Assert.assertEquals(Long.valueOf(d.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertEquals(Long.valueOf(d.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
|
||||||
} else {
|
|
||||||
Assert.assertEquals(Long.valueOf(d.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
|
||||||
}
|
|
||||||
|
|
||||||
Assert.assertNotNull(d.getTaskArray());
|
Assert.assertNotNull(d.getTaskArray());
|
||||||
for (TaskInfoData task : d.getTaskArray()
|
for (TaskInfoData task : d.getTaskArray()
|
||||||
|
@ -1083,11 +1078,7 @@ public class DeviceNodeInfoControllerTest extends InitTestEnvironment {
|
||||||
Assert.assertNotNull(d.getId());
|
Assert.assertNotNull(d.getId());
|
||||||
|
|
||||||
// no task
|
// no task
|
||||||
if (d.getTaskArray().size() == 0) {
|
Assert.assertEquals(Long.valueOf(d.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertEquals(Long.valueOf(d.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
|
||||||
} else {
|
|
||||||
Assert.assertEquals(Long.valueOf(d.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
|
||||||
}
|
|
||||||
|
|
||||||
Assert.assertNotNull(d.getTaskArray());
|
Assert.assertNotNull(d.getTaskArray());
|
||||||
for (TaskInfoData task : d.getTaskArray()
|
for (TaskInfoData task : d.getTaskArray()
|
||||||
|
|
|
@ -39,7 +39,6 @@ import org.springframework.transaction.annotation.Transactional;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
|
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
|
||||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
||||||
|
@ -364,7 +363,6 @@ public class TaskControllerTest extends InitTestEnvironment {
|
||||||
.getResponse()
|
.getResponse()
|
||||||
.getContentAsString();
|
.getContentAsString();
|
||||||
|
|
||||||
String regex = "\\A(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}\\z";
|
|
||||||
String msgContent = verifyRep(taskStopByNode, reqTimeStamp);
|
String msgContent = verifyRep(taskStopByNode, reqTimeStamp);
|
||||||
System.out.print("msgContent=" + msgContent);
|
System.out.print("msgContent=" + msgContent);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue