results = Api.issues.find(params)
hash = {
:securityExclusions => results.securityExclusions,
+ :maxResultsReached => results.maxResultsReached,
:paging => paging_to_hash(results.paging),
:issues => results.issues.map { |issue| Issue.to_hash(issue) },
:components => results.components.map { |component| component_to_hash(component) },
Map paging = (Map) jsonRoot.get("paging");
result.setPaging(new Paging(paging));
result.setSecurityExclusions(JsonUtils.getBoolean(jsonRoot, "securityExclusions"));
+ result.setMaxResultsReached(JsonUtils.getBoolean(jsonRoot, "maxResultsReached"));
return result;
}
private final Map<String, Component> projectsByKey = new HashMap<String, Component>();
private Paging paging;
private Boolean securityExclusions;
+ private Boolean maxResultsReached;
public List<Issue> list() {
return list;
return securityExclusions;
}
+ public Boolean maxResultsReached() {
+ return maxResultsReached;
+ }
+
Issues add(Issue issue) {
list.add(issue);
return this;
this.securityExclusions = securityExclusions;
return this;
}
+
+ Issues setMaxResultsReached(Boolean maxResultsReached) {
+ this.maxResultsReached = maxResultsReached;
+ return this;
+ }
}
assertThat(paging.total()).isEqualTo(2);
assertThat(issues.securityExclusions()).isTrue();
+ assertThat(issues.maxResultsReached()).isTrue();
}
@Test
assertThat(issues.rules()).isEmpty();
}
-
@Test
public void test_GET_transitions() throws Exception {
String json = IOUtils.toString(getClass().getResourceAsStream("/org/sonar/wsclient/issue/IssueParserTest/getTransitions.json"));
"total": 2,
"pages": 1
},
- "securityExclusions": true
+ "securityExclusions": true,
+ "maxResultsReached": false
}
\ No newline at end of file
"total": 2,
"pages": 1
},
- "securityExclusions": true
+ "securityExclusions": true,
+ "maxResultsReached": false
}
\ No newline at end of file
"total": 2,
"pages": 1
},
- "securityExclusions": true
+ "securityExclusions": true,
+ "maxResultsReached": false
}
\ No newline at end of file
"total": 2,
"pages": 1
},
- "securityExclusions": true
+ "securityExclusions": true,
+ "maxResultsReached": false
}
\ No newline at end of file
"total": 2,
"pages": 1
},
- "securityExclusions": true
+ "securityExclusions": true,
+ "maxResultsReached": true
}
\ No newline at end of file