Examples of home()


Examples of com.jcabi.http.mock.MkContainer.home()

            )
        ).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

Examples of com.jcabi.http.mock.MkContainer.home()

            )
        ).start();
        final Gist gist = Mockito.mock(Gist.class);
        Mockito.doReturn("2").when(gist).identifier();
        final RtGistComments comments = new RtGistComments(
            new JdkRequest(container.home()),
            gist
        );
        MatcherAssert.assertThat(
            comments.iterate(),
            Matchers.<GistComment>iterableWithSize(2)
View Full Code Here

Examples of com.jcabi.http.mock.MkContainer.home()

            )
        ).next(answer).start();
        final Gist gist = Mockito.mock(Gist.class);
        Mockito.doReturn("3").when(gist).identifier();
        final RtGistComments comments = new RtGistComments(
            new JdkRequest(container.home()),
            gist
        );
        final GistComment comment = comments.post(body);
        MatcherAssert.assertThat(
            container.take().method(),
View Full Code Here

Examples of com.jcabi.http.mock.MkContainer.home()

                    .build().toString()
            )
        ).start();
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new ApacheRequest(container.home()),
            new Coordinates.Simple("octocat", "master")
        );
        MatcherAssert.assertThat(
            repo.events(),
            Matchers.<Event>iterableWithSize(2)
View Full Code Here

Examples of com.jcabi.http.mock.MkContainer.home()

                event(Event.ASSIGNED).toString()
            )
        ).start();
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new ApacheRequest(container.home()),
            new Coordinates.Simple("test", "test-branch")
        );
        repo.patch(event(Event.ASSIGNED));
        MatcherAssert.assertThat(
            container.take().method(),
View Full Code Here

Examples of com.jcabi.http.mock.MkContainer.home()

            new MkAnswer.Simple(HttpURLConnection.HTTP_CREATED, response)
        ).next(new MkAnswer.Simple(HttpURLConnection.HTTP_OK, response))
            .start();
        final RtRepos repos = new RtRepos(
            Mockito.mock(Github.class),
            new ApacheRequest(container.home())
        );
        final Repo repo = this.rule.repo(repos);
        MatcherAssert.assertThat(
            container.take().method(),
            Matchers.equalTo(Request.POST)
View Full Code Here

Examples of com.jcabi.http.mock.MkContainer.home()

                    .build().toString()
            )
        ).start();
        final RtRepos repos = new RtRepos(
            Mockito.mock(Github.class),
            new ApacheRequest(container.home())
        );
        MatcherAssert.assertThat(
            repos.iterate(identifier),
            Matchers.<Repo>iterableWithSize(2)
        );
View Full Code Here

Examples of com.jcabi.http.mock.MkContainer.home()

        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(HttpURLConnection.HTTP_NO_CONTENT, "")
        ).start();
        final Repos repos = new RtRepos(
            Mockito.mock(Github.class),
            new ApacheRequest(container.home())
        );
        repos.remove(new Coordinates.Simple("", ""));
        try {
            final MkQuery query = container.take();
            MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.http.mock.MkContainer.home()

        final Coordinates coordinates = new Coordinates.Simple(
            "test_user", "test_repo"
        );
        Mockito.doReturn(coordinates).when(owner).coordinates();
        final RtForks forks = new RtForks(
            new JdkRequest(container.home()),
            owner
        );
        final Fork fork = forks.create(organization);
        MatcherAssert.assertThat(
            container.take().method(),
View Full Code Here

Examples of com.jcabi.http.mock.MkContainer.home()

    public void canFetchEmptyListOfHooks() throws Exception {
        final MkContainer container = new MkGrizzlyContainer().next(
            new MkAnswer.Simple(HttpURLConnection.HTTP_OK, "[]")
        ).start();
        final Hooks hooks = new RtHooks(
            new JdkRequest(container.home()),
            RtHooksTest.repo()
        );
        try {
            MatcherAssert.assertThat(
                hooks.iterate(),
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.