refactor(测试计划): 更改返回值变量名
This commit is contained in:
parent
2b52a5f2a4
commit
7cec9c2c76
|
@ -19,9 +19,9 @@ public class TestPlanCoverageDTO {
|
||||||
* 归档未通过
|
* 归档未通过
|
||||||
*/
|
*/
|
||||||
private int passed = 0;
|
private int passed = 0;
|
||||||
private int passed_archived = 0;
|
private int passedArchived = 0;
|
||||||
private int notPassed = 0;
|
private int notPassed = 0;
|
||||||
private int notPassed_archived = 0;
|
private int notPassedArchived = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 已完成
|
* 已完成
|
||||||
|
@ -46,7 +46,7 @@ public class TestPlanCoverageDTO {
|
||||||
|
|
||||||
if (isArchived) {
|
if (isArchived) {
|
||||||
this.archived++;
|
this.archived++;
|
||||||
this.notPassed_archived++;
|
this.notPassedArchived++;
|
||||||
} else {
|
} else {
|
||||||
this.prepared++;
|
this.prepared++;
|
||||||
this.notPassed++;
|
this.notPassed++;
|
||||||
|
@ -58,7 +58,7 @@ public class TestPlanCoverageDTO {
|
||||||
|
|
||||||
if (isArchived) {
|
if (isArchived) {
|
||||||
this.archived++;
|
this.archived++;
|
||||||
this.passed_archived++;
|
this.passedArchived++;
|
||||||
} else {
|
} else {
|
||||||
this.finished++;
|
this.finished++;
|
||||||
this.passed++;
|
this.passed++;
|
||||||
|
@ -70,7 +70,7 @@ public class TestPlanCoverageDTO {
|
||||||
|
|
||||||
if (isArchived) {
|
if (isArchived) {
|
||||||
this.archived++;
|
this.archived++;
|
||||||
this.notPassed_archived++;
|
this.notPassedArchived++;
|
||||||
} else {
|
} else {
|
||||||
this.finished++;
|
this.finished++;
|
||||||
this.notPassed++;
|
this.notPassed++;
|
||||||
|
@ -82,7 +82,7 @@ public class TestPlanCoverageDTO {
|
||||||
|
|
||||||
if (isArchived) {
|
if (isArchived) {
|
||||||
this.archived++;
|
this.archived++;
|
||||||
this.passed_archived++;
|
this.passedArchived++;
|
||||||
} else {
|
} else {
|
||||||
this.running++;
|
this.running++;
|
||||||
this.passed++;
|
this.passed++;
|
||||||
|
@ -94,7 +94,7 @@ public class TestPlanCoverageDTO {
|
||||||
|
|
||||||
if (isArchived) {
|
if (isArchived) {
|
||||||
this.archived++;
|
this.archived++;
|
||||||
this.notPassed_archived++;
|
this.notPassedArchived++;
|
||||||
} else {
|
} else {
|
||||||
this.running++;
|
this.running++;
|
||||||
this.notPassed++;
|
this.notPassed++;
|
||||||
|
|
|
@ -1882,8 +1882,8 @@ public class TestPlanControllerTests extends BaseTest {
|
||||||
|
|
||||||
MvcResult mvcResult = this.requestPostWithOkAndReturn("/test-plan/rage", request);
|
MvcResult mvcResult = this.requestPostWithOkAndReturn("/test-plan/rage", request);
|
||||||
TestPlanCoverageDTO coverageDTO = this.getResultData(mvcResult, TestPlanCoverageDTO.class);
|
TestPlanCoverageDTO coverageDTO = this.getResultData(mvcResult, TestPlanCoverageDTO.class);
|
||||||
Assertions.assertEquals(coverageDTO.getUnExecute() + coverageDTO.getExecuted(), coverageDTO.getPassed() + coverageDTO.getNotPassed() + coverageDTO.getPassed_archived() + coverageDTO.getNotPassed_archived());
|
Assertions.assertEquals(coverageDTO.getUnExecute() + coverageDTO.getExecuted(), coverageDTO.getPassed() + coverageDTO.getNotPassed() + coverageDTO.getPassedArchived() + coverageDTO.getNotPassedArchived());
|
||||||
Assertions.assertEquals(coverageDTO.getFinished() + coverageDTO.getRunning() + coverageDTO.getArchived() + coverageDTO.getPrepared(), coverageDTO.getPassed() + coverageDTO.getNotPassed() + coverageDTO.getPassed_archived() + coverageDTO.getNotPassed_archived());
|
Assertions.assertEquals(coverageDTO.getFinished() + coverageDTO.getRunning() + coverageDTO.getArchived() + coverageDTO.getPrepared(), coverageDTO.getPassed() + coverageDTO.getNotPassed() + coverageDTO.getPassedArchived() + coverageDTO.getNotPassedArchived());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue