Examples of Issues


Examples of net.sf.redmine_mylyn.internal.api.parser.adapter.type.Issues

    monitor.beginTask(Messages.PROGRESS_FETCH_ISSUES, 1);

    String uri = String.format(URL_ISSUES_LIST, Arrays.toString(issueIds).replaceAll("[\\[\\] ]", "")); //$NON-NLS-1$ //$NON-NLS-2$
    GetMethod method = new GetMethod(uri);
   
    Issues issues = executeMethod(method, issuesParser, monitor);

    if(monitor.isCanceled()) {
      throw new OperationCanceledException();
    } else {
      monitor.worked(1);
    }
   
    return issues.getAll().toArray(new Issue[issues.getAll().size()]);
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.internal.api.parser.adapter.type.Issues

    List<NameValuePair> params = query.getParams();
   
    if(params.size()>0) {
      method.setQueryString(params.toArray(new NameValuePair[params.size()]));
    }
    Issues partialIssues = executeMethod(method, issuesParser, monitor);

    if(monitor.isCanceled()) {
      throw new OperationCanceledException();
    } else {
      monitor.worked(1);
    }
   
    return partialIssues.getAll().toArray(new Issue[partialIssues.getAll().size()]);
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.internal.api.parser.adapter.type.Issues

    this.configuration = configuration;
  }
 
  @Override
  public Issues parseResponse(InputStream input, int sc) throws RedmineApiErrorException {
    Issues issues = super.parseResponse(input, sc);
    if(issues!=null) {
      for(Issue issue : issues.getAll()) {
        IssueStatus status = configuration.getIssueStatuses().getById(issue.getStatusId());
        issue.setClosed(status==null || status.isClosed());
      }
    }
    return issues;
View Full Code Here

Examples of net.sf.redmine_mylyn.internal.api.parser.adapter.type.Issues

    input.close();
  }

  @Test
  public void testParseResponse() throws Exception {
    Issues ct = testee.parseResponse(input, HttpStatus.SC_OK);
   
    assertNotNull(ct);
    assertNotNull(ct.getAll());
    assertEquals(PartialIssueValidator.COUNT, ct.getAll().size());
   
    PartialIssueValidator.validate1(ct.getAll().get(5));
  }
View Full Code Here

Examples of net.sf.redmine_mylyn.internal.api.parser.adapter.type.Issues

      IssueValidator.validate1(issue);

      issue = testee.parseResponse(in2, HttpStatus.SC_OK);
      IssueValidator.validate2(issue);
     
      Issues issues = testee2.parseResponse(inL, HttpStatus.SC_OK);
      assertNotNull(issues);
      assertEquals(3, issues.getAll().size());
      IssueValidator.validate1(issues.get(1));

    } finally {
      in1.close();
      in2.close();
      inL.close();
View Full Code Here

Examples of net.zion54.webissuetracker.model.Issues

        return "index";
    }

    @RequestMapping(value = "/createissue", method = RequestMethod.GET)
    public String createIssue(Model model) {
        model.addAttribute("issue", new Issues());
        return "createissue";
    }
View Full Code Here

Examples of org.sonar.wsclient.issue.Issues

    final ImmutableList.Builder<Issue> builder = ImmutableList.builder();
    IssueQuery query = IssueQuery.create()
        .componentRoots(resourceKey)
        .resolved(false)
        .pageSize(-1);
    Issues issues = sonarClient.issueClient().find(query);
    builder.addAll(issues.list());
    for (int pageIndex = 2; pageIndex <= issues.paging().pages(); pageIndex++) {
      final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgressIndicator();
      if (progressIndicator.isCanceled())
        break;
      progressIndicator.setText2(pageIndex + " / " + issues.paging().pages());
      progressIndicator.setFraction(pageIndex * 1.0 / issues.paging().pages());

      query = IssueQuery.create()
          .componentRoots(resourceKey)
          .resolved(false)
          .pageSize(-1)
          .pageIndex(pageIndex);
      issues = sonarClient.issueClient().find(query);
      builder.addAll(issues.list());
    }
    return builder.build();
  }
View Full Code Here

Examples of org.sonar.wsclient.issue.Issues

  private static void testGetIssues() {
    SonarServer sonarServer = SonarServer.create("https://sonar.corp.mobile.de/sonar");
    final String resourceKey = "de.mobile.dealer:dealer-admin";
//    final String resourceKey = "de.mobile:mobile-multimodule-pom";
    final Issues issues = sonarServer.getIssuesFor(resourceKey);
    System.out.println(issues.size() + " issues for " + resourceKey + " | total: " + issues.paging().total() +
    " pages: " + issues.paging().pages() + " max results reached: " + issues.maxResultsReached());
  }
View Full Code Here

Examples of org.sonar.wsclient.issue.Issues

                client=SonarClient.builder().url(serverUrl).login(userCredentials.getUsername()).password(PassEncoder.decodeAsString(userCredentials.getPassword())).build();
            }
            IssueClient issueClient = client.issueClient();
            List<RadarIssue> issues=new LinkedList<>();
            Map<String, Rule> rulesCache=new HashMap<>();
            Issues result;
            int pageIndex=1;
            do{
                query.pageIndex(pageIndex);
                result = issueClient.find(query);
                for(Issue issue:result.list()) {
                    Rule rule = rulesCache.get(issue.ruleKey());
                    if(rule == null) {
                        rule=getRule(userCredentials, issue.ruleKey());
                        if(rule == null){
                            throw new IllegalStateException("No such rule in server: "+issue.ruleKey());
                        }
                        rulesCache.put(issue.ruleKey(), rule);
                    }
                    issues.add(new RadarIssue(issue, rule));
                }
                pageIndex++;
            }while(pageIndex <= result.paging().pages());
            return issues;
        }catch(HttpException ex) {
            if(ex.status() == UNAUTHORIZED_RESPONSE_STATUS){
                throw new AuthorizationException(ex);
            }else{
View Full Code Here

Examples of ru.yandex.qatools.allure.annotations.Issues

     * Find {@link ru.yandex.qatools.allure.annotations.Issues} annotation and return respective key
     *
     * @return issue keys or empty array if annotation isn't present
     */
    public String[] getIssueKeys() {
        Issues issues = getAnnotation(Issues.class);
        if (issues == null) {
            return new String[0];
        }
        List<String> keys = new ArrayList<>();
        for (Issue issue : issues.value()) {
            keys.add(issue.value());
        }
        return keys.toArray(new String[keys.size()]);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.