Package br.com.caelum.vraptor.interceptor

Examples of br.com.caelum.vraptor.interceptor.InterceptorRegistry.all()


 
 
  @Test
  public void shoudRegisterInterceptorsInInterceptorRegistry() {
    InterceptorRegistry registry = getFromContainer(InterceptorRegistry.class);
    assertThat(registry.all(), hasOneCopyOf(InterceptorInTheClasspath.class));
 
   
 
 
  @Test
View Full Code Here


  }

  @Test
  public void shoudRegisterInterceptorsInInterceptorRegistry() {
    InterceptorRegistry registry = container.instanceFor(InterceptorRegistry.class);
    assertThat(registry.all(), hasItem(DummyInterceptor.class));
  }
}
View Full Code Here

  }

  @Test
  public void shoudRegisterInterceptorsInInterceptorRegistry() {
    InterceptorRegistry registry = instanceFor(InterceptorRegistry.class);
    assertThat(registry.all(), hasOneCopyOf(InterceptorInTheClasspath.class));
  }

  private <T> T instanceFor(final Class<T> component) {
    return cdiBasedContainer.instanceFor(component);
  }
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.