Package org.strecks.interceptor.internal.impl

Examples of org.strecks.interceptor.internal.impl.InterceptorAwareImpl


  {

    ActionBeanInterceptorReader reader = new ActionBeanInterceptorReader();
    assert true == reader.readAnnotations(InterceptorAction.class);

    InterceptorAwareImpl interceptorAwareImpl = new InterceptorAwareImpl();
    reader.populateController(interceptorAwareImpl);

    List<BeforeInterceptor> beforeInterceptors = interceptorAwareImpl.getBeforeInterceptors();
    List<AfterInterceptor> afterInterceptors = interceptorAwareImpl.getAfterInterceptors();
    assertEquals(2, beforeInterceptors.size());
    assertEquals(2, afterInterceptors.size());

    for (BeforeInterceptor interceptor : beforeInterceptors)
    {
View Full Code Here


  public void testEmptyInterceptorReader()
  {
    ActionBeanInterceptorReader reader = new ActionBeanInterceptorReader();
    assert false == reader.readAnnotations(EmptyInterceptorAction.class);

    InterceptorAwareImpl interceptorAwareImpl = new InterceptorAwareImpl();
    reader.populateController(interceptorAwareImpl);

    List<BeforeInterceptor> beforeInterceptors = interceptorAwareImpl.getBeforeInterceptors();
    List<AfterInterceptor> afterInterceptors = interceptorAwareImpl.getAfterInterceptors();
    assertEquals(0, beforeInterceptors.size());
    assertEquals(0, afterInterceptors.size());
  }
View Full Code Here

TOP

Related Classes of org.strecks.interceptor.internal.impl.InterceptorAwareImpl

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.