Package br.com.caelum.vraptor.view

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


  }

  @Test
  public void shouldDelegateToStatusOnNotFound() throws Exception {

    Status status = mockResult(Status.class);

    result.notFound();

    verify(status).notFound();
View Full Code Here


  }

  @Test
  public void shouldDelegateToStatusOnPermanentlyRedirectToUri() throws Exception {

    Status status = mockResult(Status.class);

    result.permanentlyRedirectTo("url");

    verify(status).movedPermanentlyTo("url");
View Full Code Here

  }

  @Test
  public void shouldDelegateToStatusOnPermanentlyRedirectToControllerClass() throws Exception {

    Status status = mockResult(Status.class);

    result.permanentlyRedirectTo(RandomController.class);

    verify(status).movedPermanentlyTo(RandomController.class);
View Full Code Here

  }

  @Test
  public void shouldDelegateToStatusOnPermanentlyRedirectToControllerInstance() throws Exception {

    Status status = mockResult(Status.class);

    result.permanentlyRedirectTo(new RandomController());

    verify(status).movedPermanentlyTo(RandomController.class);
View Full Code Here

  }
 
  @Test
  public void shouldDelegateToStatusOnNotFound() throws Exception {

    Status status = mockResult(Status.class);

    result.notFound();

    verify(status).notFound();
  }
View Full Code Here

  }

  @Test
  public void shouldDelegateToStatusOnPermanentlyRedirectToUri() throws Exception {

    Status status = mockResult(Status.class);

    result.permanentlyRedirectTo("url");

    verify(status).movedPermanentlyTo("url");
  }
View Full Code Here

  }

  @Test
  public void shouldDelegateToStatusOnPermanentlyRedirectToControllerClass() throws Exception {

    Status status = mockResult(Status.class);

    result.permanentlyRedirectTo(RandomController.class);

    verify(status).movedPermanentlyTo(RandomController.class);
  }
View Full Code Here

  }

  @Test
  public void shouldDelegateToStatusOnPermanentlyRedirectToControllerInstance() throws Exception {

    Status status = mockResult(Status.class);

    result.permanentlyRedirectTo(new RandomController());

    verify(status).movedPermanentlyTo(RandomController.class);
  }
View Full Code Here

TOP

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

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.