Package org.sonar.api.web

Examples of org.sonar.api.web.ServletFilter$UrlPattern


    MasterServletFilter.INSTANCE = null;
  }

  @Test
  public void should_init_and_destroy_filters() throws Exception {
    ServletFilter filter = mock(ServletFilter.class);
    FilterConfig config = mock(FilterConfig.class);
    MasterServletFilter master = new MasterServletFilter();
    master.init(config, Arrays.asList(filter));

    assertThat(master.getFilters()).containsOnly(filter);
View Full Code Here


  @Test
  public void should_propagate_initialization_failure() throws Exception {
    thrown.expect(IllegalStateException.class);
    thrown.expectMessage("foo");

    ServletFilter filter = mock(ServletFilter.class);
    doThrow(new IllegalStateException("foo")).when(filter).init(any(FilterConfig.class));

    FilterConfig config = mock(FilterConfig.class);
    MasterServletFilter filters = new MasterServletFilter();
    filters.init(config, Arrays.asList(filter));
View Full Code Here

TOP

Related Classes of org.sonar.api.web.ServletFilter$UrlPattern

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.