refactor(测试计划): 更改返回值变量名

This commit is contained in:
Jianguo-Genius 2024-12-19 14:53:20 +08:00 committed by Craftsman
parent 2b52a5f2a4
commit 7cec9c2c76
2 changed files with 9 additions and 9 deletions

View File

@ -19,9 +19,9 @@ public class TestPlanCoverageDTO {
* 归档未通过
*/
private int passed = 0;
private int passed_archived = 0;
private int passedArchived = 0;
private int notPassed = 0;
private int notPassed_archived = 0;
private int notPassedArchived = 0;
/**
* 已完成
@ -46,7 +46,7 @@ public class TestPlanCoverageDTO {
if (isArchived) {
this.archived++;
this.notPassed_archived++;
this.notPassedArchived++;
} else {
this.prepared++;
this.notPassed++;
@ -58,7 +58,7 @@ public class TestPlanCoverageDTO {
if (isArchived) {
this.archived++;
this.passed_archived++;
this.passedArchived++;
} else {
this.finished++;
this.passed++;
@ -70,7 +70,7 @@ public class TestPlanCoverageDTO {
if (isArchived) {
this.archived++;
this.notPassed_archived++;
this.notPassedArchived++;
} else {
this.finished++;
this.notPassed++;
@ -82,7 +82,7 @@ public class TestPlanCoverageDTO {
if (isArchived) {
this.archived++;
this.passed_archived++;
this.passedArchived++;
} else {
this.running++;
this.passed++;
@ -94,7 +94,7 @@ public class TestPlanCoverageDTO {
if (isArchived) {
this.archived++;
this.notPassed_archived++;
this.notPassedArchived++;
} else {
this.running++;
this.notPassed++;

View File

@ -1882,8 +1882,8 @@ public class TestPlanControllerTests extends BaseTest {
MvcResult mvcResult = this.requestPostWithOkAndReturn("/test-plan/rage", request);
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.getFinished() + coverageDTO.getRunning() + coverageDTO.getArchived() + coverageDTO.getPrepared(), 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.getPassedArchived() + coverageDTO.getNotPassedArchived());
}