Package org.sonar.api.web

Examples of org.sonar.api.web.Filter


public class ProjectFilterTest {
  @Test
  public void should_create_filter() {
    ProjectFilter template = new ProjectFilter();

    Filter filter = template.createFilter();

    assertThat(template.getName()).isEqualTo("Projects");
    assertThat(filter).isNotNull();
    assertThat(filter.getCriteria()).hasSize(1);
    assertThat(filter.getColumns()).hasSize(6);
  }
View Full Code Here


public class MyFavouritesFilterTest {
  @Test
  public void should_create_filter() {
    MyFavouritesFilter template = new MyFavouritesFilter();

    Filter filter = template.createFilter();

    assertThat(template.getName()).isEqualTo("My favourites");
    assertThat(filter).isNotNull();
    assertThat(filter.isFavouritesOnly()).isTrue();
    assertThat(filter.getCriteria()).isEmpty();
    assertThat(filter.getColumns()).hasSize(3);
  }
View Full Code Here

  public void start() {
    TimeProfiler profiler = new TimeProfiler(LOG).start("Register measure filters");

    for (FilterTemplate template : filterTemplates) {
      if (shouldRegister(template.getName())) {
        Filter filter = template.createFilter();
        register(template.getName(), filter);
      }
    }

    profiler.stop();
View Full Code Here

TOP

Related Classes of org.sonar.api.web.Filter

Copyright © 2018 www.massapicom. 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.