質問するログイン新規登録

回答編集履歴

1

Fix assert

2020/06/27 12:20

投稿

YufanLou
YufanLou

スコア466

answer CHANGED
@@ -29,7 +29,7 @@
29
29
  private String ob;
30
30
 
31
31
  public ApiResultResponse getApiResultResponse() {
32
- assert result != "success";
32
+ assert result == "success";
33
33
  ApiResultResponse res = new ApiResultResponse();
34
34
  res.result = this.result;
35
35
  res.data = this.data;
@@ -38,7 +38,7 @@
38
38
  }
39
39
 
40
40
  public ApiValidResponse getApiValidResponse() {
41
- assert result != "validation";
41
+ assert result == "validation";
42
42
  ApiResultResponse res = new ApiValidResponse();
43
43
  res.result = this.result;
44
44
  res.valid = this.valid;
@@ -47,7 +47,7 @@
47
47
  }
48
48
 
49
49
  public ApiMaintenanceResponse getApiMaintenanceResponse() {
50
- assert result != "Maintenance";
50
+ assert result == "Maintenance";
51
51
  ApiResultResponse res = new ApiMaintenanceResponse();
52
52
  res.result = this.result;
53
53
  res.path = this.path;