Package br.com.caelum.vraptor.view

Examples of br.com.caelum.vraptor.view.MockedPage


  }

  @Test
  public void shouldForwardToViewWhenResultWasNotUsed() {
    when(result.used()).thenReturn(false);
    when(result.use(PageResult.class)).thenReturn(new MockedPage());

    interceptor.intercept(null, null, null);

    verify(result).use(PageResult.class);
  }
View Full Code Here


  }

  @Test
  public void shouldForwardToViewWhenResultWasNotUsed() {
    when(result.used()).thenReturn(false);
    when(result.use(PageResult.class)).thenReturn(new MockedPage());
    interceptor.forward(new RequestSucceded(request, response));
    verify(result).use(PageResult.class);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.vraptor.view.MockedPage

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.