parent
187a016364
commit
fb861c1157
|
@ -666,11 +666,9 @@ public class TaskControllerQATest extends InitTestEnvironment {
|
||||||
Assert.assertNotNull(task.getMessage());
|
Assert.assertNotNull(task.getMessage());
|
||||||
|
|
||||||
if (task.getStatus() == 0) {
|
if (task.getStatus() == 0) {
|
||||||
Assert.assertEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertEquals(task.getMessage(), "成功");
|
|
||||||
} else {
|
} else {
|
||||||
Assert.assertNotEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertNotEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertNotEquals(task.getMessage(), "成功");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (task.getType() != null) {
|
if (task.getType() != null) {
|
||||||
|
@ -718,11 +716,9 @@ public class TaskControllerQATest extends InitTestEnvironment {
|
||||||
Assert.assertNotNull(task.getMessage());
|
Assert.assertNotNull(task.getMessage());
|
||||||
|
|
||||||
if (task.getStatus() == 0) {
|
if (task.getStatus() == 0) {
|
||||||
Assert.assertEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertEquals(task.getMessage(), "成功");
|
|
||||||
} else {
|
} else {
|
||||||
Assert.assertNotEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertNotEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertNotEquals(task.getMessage(), "成功");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (task.getType() != null) {
|
if (task.getType() != null) {
|
||||||
|
@ -881,11 +877,9 @@ public class TaskControllerQATest extends InitTestEnvironment {
|
||||||
Assert.assertNotNull(task.getMessage());
|
Assert.assertNotNull(task.getMessage());
|
||||||
|
|
||||||
if (task.getStatus() == 0) {
|
if (task.getStatus() == 0) {
|
||||||
Assert.assertEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertEquals(task.getMessage(), "成功");
|
|
||||||
} else {
|
} else {
|
||||||
Assert.assertNotEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertNotEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertNotEquals(task.getMessage(), "成功");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (task.getType() != null) {
|
if (task.getType() != null) {
|
||||||
|
@ -932,11 +926,9 @@ public class TaskControllerQATest extends InitTestEnvironment {
|
||||||
Assert.assertNotNull(task.getMessage());
|
Assert.assertNotNull(task.getMessage());
|
||||||
|
|
||||||
if (task.getStatus() == 0) {
|
if (task.getStatus() == 0) {
|
||||||
Assert.assertEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertEquals(task.getMessage(), "成功");
|
|
||||||
} else {
|
} else {
|
||||||
Assert.assertNotEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertNotEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertNotEquals(task.getMessage(), "成功");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (task.getType() != null) {
|
if (task.getType() != null) {
|
||||||
|
@ -984,11 +976,9 @@ public class TaskControllerQATest extends InitTestEnvironment {
|
||||||
Assert.assertNotNull(task.getMessage());
|
Assert.assertNotNull(task.getMessage());
|
||||||
|
|
||||||
if (task.getStatus() == 0) {
|
if (task.getStatus() == 0) {
|
||||||
Assert.assertEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertEquals(task.getMessage(), "成功");
|
|
||||||
} else {
|
} else {
|
||||||
Assert.assertNotEquals(String.valueOf(task.getStatus()), "0");
|
Assert.assertNotEquals(Long.valueOf(task.getStatus()), Long.valueOf(ErrorCode.ERR_OK.getCode()));
|
||||||
Assert.assertNotEquals(task.getMessage(), "成功");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (task.getType() != null) {
|
if (task.getType() != null) {
|
||||||
|
|
Loading…
Reference in New Issue