Package br.com.caelum.vraptor.view

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


  }

  @Test
  public void shouldDelegateToPageResultOnForwardToURI() throws Exception {

    PageResult pageResult = mockResult(PageResult.class);

    result.forwardTo("/any/uri");

    verify(pageResult).forwardTo("/any/uri");
  }
View Full Code Here


  }

  @Test
  public void shouldDelegateToPageResultOnRedirectToURI() throws Exception {

    PageResult pageResult = mockResult(PageResult.class);

    result.redirectTo("/any/uri");

    verify(pageResult).redirectTo("/any/uri");
  }
View Full Code Here

    return pageResult;
  }
  @Test
  public void shouldDelegateToPageResultOnPageOf() throws Exception {

    PageResult pageResult = mockResult(PageResult.class);

    result.of(RandomController.class);

    verify(pageResult).of(RandomController.class);
  }
View Full Code Here

  }
  @Test
  public void shouldDelegateToPageResultOnPageOfWithInstance() throws Exception {

    PageResult pageResult = mockResult(PageResult.class);

    result.of(new RandomController());

    verify(pageResult).of(RandomController.class);
View Full Code Here

  }

  @Test
  public void shouldDelegateToPageResultOnForwardToURI() throws Exception {

    PageResult pageResult = mockResult(PageResult.class);

    result.forwardTo("/any/uri");

    verify(pageResult).forwardTo("/any/uri");
  }
View Full Code Here

  }

  @Test
  public void shouldDelegateToPageResultOnRedirectToURI() throws Exception {

    PageResult pageResult = mockResult(PageResult.class);

    result.redirectTo("/any/uri");

    verify(pageResult).redirectTo("/any/uri");
  }
View Full Code Here

    return pageResult;
  }
  @Test
  public void shouldDelegateToPageResultOnPageOf() throws Exception {

    PageResult pageResult = mockResult(PageResult.class);

    result.of(RandomController.class);

    verify(pageResult).of(RandomController.class);
  }
View Full Code Here

  }
 
  @Test
  public void shouldDelegateToPageResultOnPageOfWithInstance() throws Exception {

    PageResult pageResult = mockResult(PageResult.class);

    result.of(new RandomController());

    verify(pageResult).of(RandomController.class);
  }
View Full Code Here

    verify(logicResult).forwardTo(RandomController.class);
  }
 
  @Test
  public void shouldDelegateToPageResultOnPageOfWithProxifiedTypeInstance() throws Exception {
    PageResult logicResult = mockResult(PageResult.class);
    RandomController randomProxy = weldProxifier.proxify(RandomController.class);
    assertThat(randomProxy, instanceOf(ProxyObject.class));
    result.of(randomProxy);
    verify(logicResult).of(RandomController.class);
  }
View Full Code Here

TOP

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

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.