Examples of ApacheRequest


Examples of com.jcabi.http.request.ApacheRequest

                HttpURLConnection.HTTP_CREATED,
                "{\"ref\":\"refs/heads/feature-a\"}"
            )
        ).start();
        final References refs = new RtReferences(
            new ApacheRequest(container.home()),
            repo()
        );
        try {
            MatcherAssert.assertThat(
                refs.create("abceefgh3456", "refs/heads/feature-a"),
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

                HttpURLConnection.HTTP_OK,
                "{\"ref\":\"refs/heads/feature-a\"}"
            )
        ).start();
        final References refs = new RtReferences(
            new ApacheRequest(container.home()),
            repo()
        );
        try {
            MatcherAssert.assertThat(
                refs.iterate(),
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

    public void removesReference() throws Exception {
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(HttpURLConnection.HTTP_NO_CONTENT, "")
        ).start();
        final References refs = new RtReferences(
            new ApacheRequest(container.home()),
            repo()
        );
        refs.remove("heads/feature-a");
        try {
            MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

                HttpURLConnection.HTTP_OK,
                "[{\"ref\":\"refs/tags/feature-b\"}]"
            )
        ).start();
        final References refs = new RtReferences(
            new ApacheRequest(container.home()),
            repo()
        );
        try {
            MatcherAssert.assertThat(
                refs.tags(),
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

                HttpURLConnection.HTTP_OK,
                "[{\"ref\":\"refs/heads/feature-c\"}]"
            )
        ).start();
        final References refs = new RtReferences(
            new ApacheRequest(container.home()),
            repo()
        );
        try {
            MatcherAssert.assertThat(
                refs.heads(),
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

                HttpURLConnection.HTTP_OK,
                "{\"test\":\"events\"}"
            )
        ).start();
        final RtEvent event = new RtEvent(
            new ApacheRequest(container.home()),
            this.repo(),
            3
        );
        try {
            MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

        final Coordinates coords = Mockito.mock(Coordinates.class);
        Mockito.doReturn(coords).when(repo).coordinates();
        Mockito.doReturn("tstuser").when(coords).user();
        Mockito.doReturn("tstbranch").when(coords).repo();
        return new RtRelease(
            new ApacheRequest(uri),
            repo,
            2
        );
    }
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

                HttpURLConnection.HTTP_OK,
                "[{\"commits\":\"test\"}]"
            )
        ).start();
        final RtPull pull = new RtPull(
            new ApacheRequest(container.home()),
            this.repo(),
            1
        );
        try {
            MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

                HttpURLConnection.HTTP_OK,
                "[{\"file1\":\"testFile\"}]"
            )
        ).start();
        final RtPull pull = new RtPull(
            new ApacheRequest(container.home()),
            this.repo(),
            2
        );
        try {
            MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.http.request.ApacheRequest

    public void executeMerge() throws Exception {
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(HttpURLConnection.HTTP_OK, "testMerge")
        ).start();
        final RtPull pull = new RtPull(
            new ApacheRequest(container.home()),
            this.repo(),
            3
        );
        pull.merge("Test commit.");
        try {
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.