Results { public static Result redirect(String url) { Result result = status(Result.SC_303_SEE_OTHER); result.addHeader(Result.LOCATION, url); result.render(Result.NO_HTTP_BODY); return result; }  static Result status(int statusCode); static Result ok(); static Result created(Optional<String> url); static Result notFound(); static Result forbidden(); static Result unauthorized(); static Result badRequest(); static Result noContent(); static Result internalServerError(); static Result redirect(String url); static Result redirectTemporary(String url); static Result contentType(String contentType); static Result html(); static Result text(); static Result json(); static Result jsonp(); static Result xml(); static Result TODO(); static Result webSocketContinue(); static AsyncResult async();  }
@Test public void testResultsRedirect() { Result result = Results.redirect("http: assertEquals(Result.SC_303_SEE_OTHER, result.getStatusCode()); assertEquals("http: result.getHeaders().get(Result.LOCATION)); assertTrue(result.getRenderable() instanceof NoHttpBody); }