Package com.jcabi.http.request

Examples of com.jcabi.http.request.ApacheRequest


                HttpURLConnection.HTTP_OK,
                "{\"ref\":\"refs/heads/featureB\"}"
            )
        ).start();
        final Reference reference = new RtReference(
            new ApacheRequest(container.home()), repo(), "refs/heads/featureB"
        );
        try {
            MatcherAssert.assertThat(
                reference.json().getString("ref"),
                Matchers.is("refs/heads/featureB")
View Full Code Here


                HttpURLConnection.HTTP_OK,
                "{\"ref\":\"refs/heads/featureC\"}"
            )
        ).start();
        final Reference reference = new RtReference(
            new ApacheRequest(container.home()), repo(), "refs/heads/featureC"
        );
        try {
            MatcherAssert.assertThat(
                reference.ref(),
                Matchers.is("refs/heads/featureC")
View Full Code Here

                HttpURLConnection.HTTP_OK,
                "{\"ref\":\"refs/heads/featureD\"}"
            )
        ).start();
        final Reference reference = new RtReference(
            new ApacheRequest(container.home()), owner, "refs/heads/featureD"
        );
        try {
            MatcherAssert.assertThat(
                reference.repo(),
                Matchers.is(owner)
View Full Code Here

                .next(this.answer(patched)).next(this.answer(original)).start();
        final MkContainer forksContainer = new MkGrizzlyContainer().start();
        final RtRepo repo =
            new RtRepo(
                new MkGithub(),
                new ApacheRequest(forksContainer.home()),
                new Coordinates.Simple("test_user", "test_repo")
            );
        final RtFork fork = new RtFork(
            new ApacheRequest(container.home()), repo, 1
        );
        fork.patch(RtForkTest.fork(patched));
        MatcherAssert.assertThat(
            new Fork.Smart(fork).organization(),
            Matchers.equalTo(patched)
View Full Code Here

TOP

Related Classes of com.jcabi.http.request.ApacheRequest

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.