Examples of find()


Examples of org.rstudio.studio.client.workbench.views.source.editors.text.ace.Search.find()

                                    range,
                                    regex);
  
      try
      {
         Range resultRange = search.find(editor_.getSession());
         if (resultRange == null)
         {
            if (!incremental)
            {
               globalDisplay_.showMessage(GlobalDisplay.MSG_INFO,
View Full Code Here

Examples of org.sikuli.api.DesktopScreenRegion.find()

    simulator.start();

    Rectangle b = simulator.getBounds();
    ScreenRegion s = new DesktopScreenRegion(b.x,b.y,b.width,b.height);
   
    ScreenRegion icon1 = s.find(new ImageTarget(Images.PersonIcon));;
    ScreenRegion icon2 = s.find(new ImageTarget(Images.ThumbIcon));;
    ScreenRegion icon3 = s.find(new ImageTarget(Images.TwitterBirdIcon));;

    canvas.addBox(icon1);
    canvas.addBox(icon2);
View Full Code Here

Examples of org.sikuli.remote.client.RemoteScreen.find()

  }
 
  @Test
  public void testFind() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
    rs.find(psc);
  }
 
  @Test
  public void testDoubleClick() throws Exception {
    RemoteScreen rs = new RemoteScreen("localhost");
View Full Code Here

Examples of org.sikuli.script.Finder.find()

   */
  private Point findClickPoint(String imageName) throws IOException {
    Point point = null;
    String actualImageName = imageResolver.getImagePath(imageName);
    Finder finder = getCurrentScreenFinder(device);
    finder.find(actualImageName, 0.7);
    if (finder.hasNext()) {
      Match match = finder.next();
      point = new Point(match.x + (match.w / 2), match.y + (match.h / 2));
    }
    return point;
View Full Code Here

Examples of org.sonar.api.batch.rule.ActiveRules.find()

    assertThat(activeRules.findByRepository("squid")).hasSize(2);
    assertThat(activeRules.findByRepository("findbugs")).hasSize(1);
    assertThat(activeRules.findByInternalKey("squid", "__S0001__")).isNotNull();
    assertThat(activeRules.findByRepository("unknown")).isEmpty();

    ActiveRule squid1 = activeRules.find(RuleKey.of("squid", "S0001"));
    assertThat(squid1.ruleKey().repository()).isEqualTo("squid");
    assertThat(squid1.ruleKey().rule()).isEqualTo("S0001");
    assertThat(((DefaultActiveRule) squid1).name()).isEqualTo("My Rule");
    assertThat(squid1.severity()).isEqualTo(Severity.CRITICAL);
    assertThat(squid1.internalKey()).isEqualTo("__S0001__");
View Full Code Here

Examples of org.sonar.api.batch.rule.Rules.find()

    assertThat(rules.findAll()).hasSize(1);
    assertThat(rules.findByRepository("checkstyle")).hasSize(1);
    assertThat(rules.findByRepository("unknown")).isEmpty();

    Rule rule = rules.find(RuleKey.of("checkstyle", "AvoidNull"));
    assertThat(rule).isNotNull();
    assertThat(rule.key()).isEqualTo(RuleKey.of("checkstyle", "AvoidNull"));
    assertThat(rule.name()).isEqualTo("Avoid Null");
    assertThat(rule.description()).isEqualTo("Should avoid NULL");
    assertThat(rule.severity()).isEqualTo(Severity.MINOR);
View Full Code Here

Examples of org.sonar.wsclient.Sonar.find()

            sonar=Sonar.create(serverUrl);
        }else{
            sonar=Sonar.create(serverUrl, userCredentials.getUsername(), PassEncoder.decodeAsString(userCredentials.getPassword()));
        }
        ServerQuery serverQuery=new ServerQuery();
        return sonar.find(serverQuery).getVersion();
    }
   
    public double getRulesCompliance(UserCredentials userCredentials, String resource) {
        try{
            if(!existsProject(userCredentials, resource)) {
View Full Code Here

Examples of org.sonar.wsclient.issue.ActionPlanClient.find()

      "\"unresolvedIssues\": 2,\n" +
      "\"createdAt\": \"2013-05-13T12:50:29+0200\",\n" +
      "\"updatedAt\": \"2013-05-13T12:50:44+0200\"}]}");

    ActionPlanClient client = new DefaultActionPlanClient(requestFactory);
    List<ActionPlan> actionPlans = client.find("com.sonarsource.it.samples:simple-sample");

    assertThat(httpServer.requestedPath()).isEqualTo("/api/action_plans/search?project=com.sonarsource.it.samples:simple-sample");
    assertThat(actionPlans).hasSize(1);
    ActionPlan actionPlan = actionPlans.get(0);
    assertThat(actionPlan.key()).isEqualTo("382f6f2e-ad9d-424a-b973-9b065e04348a");
View Full Code Here

Examples of org.sonar.wsclient.issue.IssueClient.find()

            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){
View Full Code Here

Examples of org.sonar.wsclient.issue.internal.DefaultIssueClient.find()

  public void should_encode_characters() {
    HttpRequestFactory requestFactory = new HttpRequestFactory(httpServer.url());
    httpServer.stubResponseBody("{\"issues\": [{\"key\": \"ABCDE\"}]}");

    IssueClient client = new DefaultIssueClient(requestFactory);
    client.find(IssueQuery.create().issues("ABC DE"));
    assertThat(httpServer.requestedPath()).isEqualTo("/api/issues/search?issues=ABC%20DE");

    client.find(IssueQuery.create().issues("ABC+BDE"));
    assertThat(httpServer.requestedPath()).isEqualTo("/api/issues/search?issues=ABC%2BBDE");
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.