IssueQuery toQuery(Map<String, Object> props) {
IssueQuery.Builder builder = IssueQuery.builder();
builder.requiredRole(UserRole.CODEVIEWER);
- builder.issueKeys(RubyUtils.toStrings(props.get("issueKeys")));
+ builder.issueKeys(RubyUtils.toStrings(props.get("issues")));
builder.severities(RubyUtils.toStrings(props.get("severities")));
builder.statuses(RubyUtils.toStrings(props.get("statuses")));
builder.resolutions(RubyUtils.toStrings(props.get("resolutions")));
@Test
public void find() throws Exception {
- facade.find(ImmutableMap.<String, Object>of("issueKeys", Lists.newArrayList("ABCDE")));
+ facade.find(ImmutableMap.<String, Object>of("issues", Lists.newArrayList("ABCDE")));
verify(finder).find(argThat(new ArgumentMatcher<IssueQuery>() {
@Override
public boolean matches(Object o) {
@Test
public void should_create_query_from_parameters() {
Map<String, Object> map = newHashMap();
- map.put("issueKeys", newArrayList("ABCDE1234"));
+ map.put("issues", newArrayList("ABCDE1234"));
map.put("severities", newArrayList("MAJOR", "MINOR"));
map.put("statuses", newArrayList("CLOSED"));
map.put("resolutions", newArrayList("FALSE-POSITIVE"));