Examples of DogAlike


Examples of br.com.caelum.vraptor.interceptor.DogAlike

  }

  @Test
  public void shouldInvokeTheMethodAndNotProceedWithInterceptorStack() throws Exception {
    ControllerMethod method = new DefaultControllerMethod(null, DogAlike.class.getMethod("bark"));
    DogAlike auau = mock(DogAlike.class);
    when(methodInfo.getParametersValues()).thenReturn(new Object[0]);
    observer.execute(new InterceptorsExecuted(method, auau));
    verify(auau).bark();
    verify(messages).assertAbsenceOfErrors();
  }
View Full Code Here

Examples of br.com.caelum.vraptor.interceptor.DogAlike

  }

  @Test
  public void shouldUseTheProvidedArguments() throws Exception {
    ControllerMethod method = new DefaultControllerMethod(null, DogAlike.class.getMethod("bark", int.class));
    DogAlike auau = mock(DogAlike.class);
    when(methodInfo.getParametersValues()).thenReturn(new Object[] { 3 });
    observer.execute(new InterceptorsExecuted(method, auau));
    verify(auau).bark(3);
    verify(messages).assertAbsenceOfErrors();
  }
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.