Examples of JdkRequest


Examples of com.jcabi.http.request.JdkRequest

                    .add(RtAssigneesTest.json("dummy"))
                    .build().toString()
            )
        ).start();
        final Assignees users = new RtAssignees(
            new JdkRequest(container.home()),
            this.repo()
        );
        MatcherAssert.assertThat(
            users.iterate(),
            Matchers.<User>iterableWithSize(2)
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .add(RtAssigneesTest.json("dummy"))
                    .build().toString()
            )
        ).start();
        final Assignees users = new RtAssignees(
            new JdkRequest(container.home()),
            this.repo()
        );
        MatcherAssert.assertThat(
            users.check("octocat2"),
            Matchers.equalTo(true)
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .add(RtAssigneesTest.json("dummy"))
                    .build().toString()
            )
        ).start();
        final Assignees users = new RtAssignees(
            new JdkRequest(container.home()),
            this.repo()
        );
        MatcherAssert.assertThat(
            users.check("octocat33"),
            Matchers.equalTo(false)
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .build()
                    .toString()
            )
        ).start();
        final RtGitignores gitignores = new RtGitignores(
            new RtGithub(new JdkRequest(container.home()))
        );
        MatcherAssert.assertThat(
            gitignores.iterate(),
            Matchers.<String>iterableWithSize(2)
        );
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .add(RtCollaboratorsTest.json("dummy"))
                    .build().toString()
            )
        ).start();
        final Collaborators users = new RtCollaborators(
            new JdkRequest(container.home()),
            this.repo()
        );
        MatcherAssert.assertThat(
            users.iterate(),
            Matchers.<User>iterableWithSize(2)
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .add(RtCollaboratorsTest.json("dummy"))
                    .build().toString()
            )
        ).start();
        final Collaborators users = new RtCollaborators(
            new JdkRequest(container.home()),
            this.repo()
        );
        try {
            users.add("dummy1");
            final MkQuery query = container.take();
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .add(RtCollaboratorsTest.json("dummy"))
                    .build().toString()
            )
        ).start();
        final Collaborators users = new RtCollaborators(
            new JdkRequest(container.home()),
            this.repo()
        );
        try {
            MatcherAssert.assertThat(
                users.isCollaborator("octocat2"),
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

                    .add(RtCollaboratorsTest.json("dummy"))
                    .build().toString()
            )
        ).start();
        final Collaborators users = new RtCollaborators(
            new JdkRequest(container.home()),
            this.repo()
        );
        try {
            users.remove("dummy");
            final MkQuery query = container.take();
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

     * Ctor.
     * @param urn Owner URN
     * @param token Security token
     */
    public RtSttc(final URN urn, final String token) {
        this.request = new JdkRequest("http://www.stateful.co")
            .header("X-Sttc-URN", urn.toString())
            .header("X-Sttc-Token", token)
            .header(HttpHeaders.ACCEPT, MediaType.TEXT_XML)
            .header(HttpHeaders.USER_AGENT, "java-sdk.stateful.co");
    }
View Full Code Here

Examples of com.jcabi.http.request.JdkRequest

     * Ctor.
     * @param urn Owner URN
     * @param token Security token
     */
    public RtSttc(final URN urn, final String token) {
        this.request = new JdkRequest("http://www.stateful.co")
            .header("X-Sttc-URN", urn.toString())
            .header("X-Sttc-Token", token)
            .header(HttpHeaders.ACCEPT, MediaType.TEXT_XML)
            .header(HttpHeaders.USER_AGENT, "java-sdk.stateful.co");
    }
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.