Examples of MkGithub


Examples of com.jcabi.github.mock.MkGithub

    public void canRepresentAsString() throws Exception {
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(HttpURLConnection.HTTP_OK, "blah")
        ).start();
        final RtOrganization org = new RtOrganization(
            new MkGithub(),
            new ApacheRequest(container.home()),
            "testToString"
        );
        try {
            MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.github.mock.MkGithub

     * This method returns a Repo for testing.
     * @return Repo - a repo to be used for test.
     * @throws Exception - if anything goes wrong.
     */
    private static Repo repo() throws Exception {
        return new MkGithub("joe").repos().create(
            Json.createObjectBuilder().add("name", "test").build()
        );
    }
View Full Code Here

Examples of com.jcabi.github.mock.MkGithub

     * This method returns a Repo for testing.
     * @return Repo - a repo to be used for test.
     * @throws Exception - if anything goes wrong.
     */
    private static Repo repo() throws Exception {
        return new MkGithub().repos().create(
            Json.createObjectBuilder().add("name", "test").build()
        );
    }
View Full Code Here

Examples of com.jcabi.github.mock.MkGithub

            new MkGrizzlyContainer().next(this.answer(original))
                .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
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.