Examples of JdkRequest


Examples of com.jcabi.http.request.JdkRequest

        final String body = issue(title).toString();
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(HttpURLConnection.HTTP_CREATED, body)
        ).next(new MkAnswer.Simple(HttpURLConnection.HTTP_OK, body)).start();
        final RtIssues issues = new RtIssues(
            new JdkRequest(container.home()),
            repo()
        );
        final Issue issue = issues.create(title, "having a problem with it.");
        MatcherAssert.assertThat(
            container.take().method(),
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                HttpURLConnection.HTTP_OK,
                issue(title).toString()
            )
        ).start();
        final RtIssues issues = new RtIssues(
            new JdkRequest(container.home()),
            repo()
        );
        final Issue issue = issues.get(1);
        MatcherAssert.assertThat(
            new Issue.Smart(issue).title(),
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .add(issue("code issue"))
                    .build().toString()
            )
        ).start();
        final RtIssues issues = new RtIssues(
            new JdkRequest(container.home()),
            repo()
        );
        MatcherAssert.assertThat(
            issues.iterate(new ArrayMap<String, String>()),
            Matchers.<Issue>iterableWithSize(2)
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .build().toString()
            )
        ).start();
        try {
            final RtPullComments comments = new RtPullComments(
                new JdkRequest(container.home()), pull
            );
            MatcherAssert.assertThat(
                comments.iterate(Collections.<String, String>emptyMap()),
                Matchers.<PullComment>iterableWithSize(2)
            );
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .build().toString()
            )
        ).start();
        try {
            final RtPullComments comments = new RtPullComments(
                new JdkRequest(container.home()), pull
            );
            MatcherAssert.assertThat(
                comments.iterate(1, Collections.<String, String>emptyMap()),
                Matchers.<PullComment>iterableWithSize(2)
            );
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

        final String body = label(name, color).toString();
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(HttpURLConnection.HTTP_CREATED, body)
        ).next(new MkAnswer.Simple(HttpURLConnection.HTTP_OK, body)).start();
        final RtLabels labels = new RtLabels(
            new JdkRequest(container.home()),
            repo()
        );
        final Label label = labels.create(name, color);
        MatcherAssert.assertThat(
            container.take().method(),
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                HttpURLConnection.HTTP_OK,
                label(name, color).toString()
            )
        ).start();
        final RtLabels issues = new RtLabels(
            new JdkRequest(container.home()),
            repo()
        );
        final Label label = issues.get(name);
        MatcherAssert.assertThat(
            new Label.Smart(label).color(),
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

    public void deleteLabel() throws Exception {
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(HttpURLConnection.HTTP_NO_CONTENT, "")
        ).start();
        final RtLabels issues = new RtLabels(
            new JdkRequest(container.home()),
            repo()
        );
        issues.delete("issue");
        final MkQuery query = container.take();
        MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .add(label("new bug", "f29522"))
                    .build().toString()
            )
        ).start();
        final RtLabels labels = new RtLabels(
            new JdkRequest(container.home()),
            repo()
        );
        MatcherAssert.assertThat(
            labels.iterate(),
            Matchers.<Label>iterableWithSize(2)
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

            )
        ).start();
        final Gist gist = Mockito.mock(Gist.class);
        Mockito.doReturn("1").when(gist).identifier();
        final RtGistComments comments = new RtGistComments(
            new JdkRequest(container.home()),
            gist
        );
        final GistComment comment = comments.get(1);
        MatcherAssert.assertThat(
            new GistComment.Smart(comment).body(),
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.