Skip to content

Commit a290138

Browse files
committedSep 7, 2022
fix junit test
1 parent 111015d commit a290138

File tree

1 file changed

+2
-2
lines changed
  • springboot-starter/src/test/java/com/codingapi/springboot/framework/dto

1 file changed

+2
-2
lines changed
 

‎springboot-starter/src/test/java/com/codingapi/springboot/framework/dto/ResponseTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void multi() {
2222
list.add("234");
2323

2424
MultiResponse<String> multiResponse = MultiResponse.of(list);
25-
Assert.isTrue(multiResponse.getData().equals(list), "return data error.");
25+
Assert.isTrue(multiResponse.getData().getList().equals(list), "return data error.");
2626
Assert.isTrue(multiResponse.getData().getTotal() == list.size(), "return data error.");
2727

2828
}
@@ -34,7 +34,7 @@ void multiSize() {
3434
list.add("234");
3535

3636
MultiResponse<String> multiResponse = MultiResponse.of(list, 10);
37-
Assert.isTrue(multiResponse.getData().equals(list), "return data error.");
37+
Assert.isTrue(multiResponse.getData().getList().equals(list), "return data error.");
3838
Assert.isTrue(multiResponse.getData().getTotal() == 10, "return data error.");
3939

4040
}

0 commit comments

Comments
 (0)
Please sign in to comment.