Examples of findAll()


Examples of org.sikuli.api.ScreenRegion.findAll()

   
    target = new ImageTarget(Images.UncheckedCheckbox);
    target.setLimit(15);
    target.setOrdering(Target.Ordering.BOTTOM_UP);
   
    rs = s.findAll(target);
   
    canvas.addLabel(Relative.to(s).topLeft().getScreenLocation(), "Unchecked checkboxes found in bottom-up ordering");
    for (int i=0; i < rs.size(); ++i){
      ScreenRegion r = rs.get(i);
      canvas.addBox(r);
View Full Code Here

Examples of org.simplecart.dao.InternetProductCategoryDAO.findAll()

        try {
            // create DAO instance
            InternetProductCategoryDAO dao = new InternetProductCategoryDAO();

            // find category objects and attach to request
            Collection categories = dao.findAll();

            // now add this collection to the request
            req.setAttribute(Constants.COLLECTION_MENU_KEY, categories);

            // commit Hibernate transaction and close Session
View Full Code Here

Examples of org.socialmusicdiscovery.server.business.repository.config.ConfigurationParameterRepository.findAll()

     * @inheritDoc
     */
    @Override
    public Set<ConfigurationParameterEntity> getParameters() {
        ConfigurationParameterRepository configurationParameterRepository = InjectHelper.instance(ConfigurationParameterRepository.class);
        return new HashSet<ConfigurationParameterEntity>(configurationParameterRepository.findAll());
    }

    /**
     * @inheritDoc
     */
 
View Full Code Here

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

public class ActiveRulesBuilderTest {
  @Test
  public void no_rules() throws Exception {
    ActiveRulesBuilder builder = new ActiveRulesBuilder();
    ActiveRules rules = builder.build();
    assertThat(rules.findAll()).isEmpty();
  }

  @Test
  public void build_rules() throws Exception {
    ActiveRules activeRules = new ActiveRulesBuilder()
View Full Code Here

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

  public void build_rules() throws Exception {
    setupData("shared");

    Rules rules = provider.provide(ruleDao, debtModel, durations);

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

Examples of org.sonar.api.measures.MetricFinder.findAll()

  public void initQuery() throws ParseException {
    Project project = mock(Project.class);
    when(project.getAnalysisDate()).thenReturn(date("2009-12-25"));

    MetricFinder metricFinder = mock(MetricFinder.class);
    when(metricFinder.findAll()).thenReturn(Arrays.<Metric>asList(CoreMetrics.LINES, CoreMetrics.COVERAGE, CoreMetrics.COVERAGE_LINE_HITS_DATA));

    TendencyDecorator decorator = new TendencyDecorator(null, metricFinder);

    TimeMachineQuery query = decorator.initQuery(project);
    assertThat(query.getMetrics().size(), is(2));
View Full Code Here

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

  private static void testGetResources() {
    Sonar sonar = Sonar.create("https://sonar.corp.mobile.de/sonar");
    ResourceQuery projectResourceQuery = new ResourceQuery();
    projectResourceQuery.setQualifiers(Resource.QUALIFIER_PROJECT);
//        projectResourceQuery.
    List<Resource> projectResourceList = sonar.findAll(projectResourceQuery);
    for (Resource projectResource : projectResourceList) {
      System.out.println("##################################################");
      System.out.println(projectResource.toString() + " ::: " + projectResource.getQualifier());
      ResourceQuery moduleResourceQuery = new ResourceQuery(projectResource.getId());
      moduleResourceQuery.setDepth(-1);
View Full Code Here

Examples of org.springframework.boot.actuate.metrics.reader.MetricReader.findAll()

  public void exposesMetrics() {
    List<Metric<?>> metrics = new ArrayList<Metric<?>>();
    metrics.add(mock(Metric.class));
    metrics.add(mock(Metric.class));
    MetricReader reader = mock(MetricReader.class);
    given(reader.findAll()).willReturn(metrics);
    MetricReaderPublicMetrics publicMetrics = new MetricReaderPublicMetrics(reader);
    assertEquals(metrics, publicMetrics.metrics());
  }

}
View Full Code Here

Examples of org.springframework.boot.actuate.metrics.rich.RichGaugeReader.findAll()

        RichGaugeReaderConfig.class, MetricRepositoryAutoConfiguration.class,
        PublicMetricsAutoConfiguration.class);

    RichGaugeReader richGaugeReader = context.getBean(RichGaugeReader.class);
    assertNotNull(richGaugeReader);
    given(richGaugeReader.findAll()).willReturn(
        Collections.singletonList(new RichGauge("bar", 3.7d)));

    RichGaugeReaderPublicMetrics publicMetrics = context
        .getBean(RichGaugeReaderPublicMetrics.class);
    assertNotNull(publicMetrics);
View Full Code Here

Examples of org.springframework.data.mongodb.core.MongoOperations.findAll()

    mongoOps.updateFirst(query(where("name").is("Joe")), update("age", 35),
        Person.class);
    p = mongoOps.findOne(query(where("name").is("Joe")), Person.class);
    log.info("Updated: " + p); // Delete mongoOps.remove(p);
    // Check that deletion worked
    List<Person> people = mongoOps.findAll(Person.class);
    log.info("Number of people = : " + people.size());
//    mongoOps.dropCollection(Person.class);
  }
}
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.