Examples of FakeRequest


Examples of com.jcabi.http.request.FakeRequest

     *
     * @throws Exception if a problem occurs.
     */
    @Test
    public void fetchesComments() throws Exception {
        final RtIssue issue = new RtIssue(new FakeRequest(), this.repo(), 1);
        MatcherAssert.assertThat(
            issue.comments(),
            Matchers.notNullValue()
        );
    }
View Full Code Here

Examples of play.test.FakeRequest

    running(fakeApplication(), new Runnable() {
      @Override
      public void run() {
        assertThat(userServicePlugin()).isNotNull();
        Http.Session session = signupAndLogin();
        FakeRequest request = fakeRequest();
        for (Map.Entry<String, String> e : session.entrySet()) {
          request = request.withSession(e.getKey(), e.getValue());
        }
        Result result = callAction(
            controllers.routes.ref.JavaController.index(), request);
        assertThat(status(result)).isEqualTo(OK);
      }
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.