Package br.com.caelum.vraptor.interceptor.example

Examples of br.com.caelum.vraptor.interceptor.example.AcceptsInterceptor


    order.verify(interceptor).after();
  }

  @Test
  public void shouldInvokeIfAccepts() {
    AcceptsInterceptor acceptsInterceptor = spy(new AcceptsInterceptor(true));
    AspectStyleInterceptorHandler aspectHandler = newAspectStyleInterceptorHandler(
        AcceptsInterceptor.class, acceptsInterceptor);

    aspectHandler.execute(stack, controllerMethod, currentController);
View Full Code Here


    order.verify(acceptsInterceptor).after();
  }

  @Test
  public void shouldNotInvokeIfDoesNotAccept() {
    AcceptsInterceptor acceptsInterceptor = spy(new AcceptsInterceptor(
        false));
    AspectStyleInterceptorHandler aspectHandler = newAspectStyleInterceptorHandler(
        AcceptsInterceptor.class, acceptsInterceptor);

    aspectHandler.execute(stack, controllerMethod, currentController);
View Full Code Here

        Mockito.any(SimpleInterceptorStack.class));
  }

  @Test
  public void shouldInvokeNextIfNotAccepts() throws Exception {
    AcceptsInterceptor interceptor = spy(new AcceptsInterceptor(false));
    AspectStyleInterceptorHandler aspectHandler = newAspectStyleInterceptorHandler(
        AcceptsInterceptor.class, interceptor);

    aspectHandler.execute(stack, controllerMethod, null);
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.interceptor.example.AcceptsInterceptor

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.