Examples of FakeRequest


Examples of com.jcabi.http.request.FakeRequest

     * @throws Exception If some problem inside
     */
    @Test
    public void comparesCommitsPatchFormat() throws Exception {
        final RepoCommits commits = new RtRepoCommits(
            new FakeRequest().withBody(
                "From 6dcb09b5b57875f33"
            ),
            RtRepoCommitsTest.repo()
        );
        MatcherAssert.assertThat(
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

     * @throws Exception if any problem inside
     */
    @Test
    public void readCorrectURL() throws Exception {
        MatcherAssert.assertThat(
            new RtRepoCommits(new FakeRequest(), repo())
                .compare("base", "head").toString(),
            Matchers.endsWith(
                "/see-FakeRequest-class/repos/user/repo/compare/base...head"
            )
        );
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

     */
    @Test
    public void fetchesLabels() throws Exception {
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new FakeRequest(),
            new Coordinates.Simple("jeff", "jeff-branch")
        );
        MatcherAssert.assertThat(
            repo.labels(),
            Matchers.notNullValue()
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

     */
    @Test
    public void fetchesIssues() throws Exception {
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new FakeRequest(),
            new Coordinates.Simple("mark", "mark-branch")
        );
        MatcherAssert.assertThat(
            repo.issues(),
            Matchers.notNullValue()
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

     */
    @Test
    public void fetchesPulls() throws Exception {
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new FakeRequest(),
            new Coordinates.Simple("kendy", "kendy-branch")
        );
        MatcherAssert.assertThat(
            repo.pulls(),
            Matchers.notNullValue()
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

     */
    @Test
    public void fetchHooks() throws Exception {
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new FakeRequest(),
            new Coordinates.Simple("paul", "paul-branch")
        );
        MatcherAssert.assertThat(
            repo.hooks(),
            Matchers.notNullValue()
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

     */
    @Test
    public void fetchKeys() throws Exception {
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new FakeRequest(),
            new Coordinates.Simple("andres", "andres-branch")
        );
        MatcherAssert.assertThat(
            repo.keys(),
            Matchers.notNullValue()
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

     */
    @Test
    public void fetchReleases() throws Exception {
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new FakeRequest(),
            new Coordinates.Simple("phil", "phil-branch")
        );
        MatcherAssert.assertThat(
            repo.releases(),
            Matchers.notNullValue()
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

     */
    @Test
    public void fetchContents() throws Exception {
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new FakeRequest(),
            new Coordinates.Simple("andres-contents", "contents-branch")
        );
        MatcherAssert.assertThat(
            repo.contents(),
            Matchers.notNullValue()
View Full Code Here

Examples of com.jcabi.http.request.FakeRequest

    @Test
    public void identifiesItself() throws Exception {
        final Coordinates coords = new Coordinates.Simple("me", "me-branch");
        final Repo repo = new RtRepo(
            Mockito.mock(Github.class),
            new FakeRequest(),
            coords
        );
        MatcherAssert.assertThat(
            repo.coordinates(),
            Matchers.sameInstance(coords)
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.