Search in sources :

Example 11 with FakeRequest

use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.

the class RtRepoTest method fetchesLabels.

/**
 * RtRepo can fetch its labels.
 *
 * @throws Exception if a problem occurs.
 */
@Test
public void fetchesLabels() throws Exception {
    final Repo repo = RtRepoTest.repo(new FakeRequest());
    MatcherAssert.assertThat(repo.labels(), Matchers.notNullValue());
}
Also used : FakeRequest(com.jcabi.http.request.FakeRequest) Test(org.junit.Test)

Example 12 with FakeRequest

use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.

the class RtRepoTest method fetchKeys.

/**
 * RtRepo can fetch its keys.
 *
 * @throws Exception if a problem occurs.
 */
@Test
public void fetchKeys() throws Exception {
    final Repo repo = RtRepoTest.repo(new FakeRequest());
    MatcherAssert.assertThat(repo.keys(), Matchers.notNullValue());
}
Also used : FakeRequest(com.jcabi.http.request.FakeRequest) Test(org.junit.Test)

Example 13 with FakeRequest

use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.

the class RtRepoTest method fetchReleases.

/**
 * RtRepo can fetch its releases.
 *
 * @throws Exception if a problem occurs.
 */
@Test
public void fetchReleases() throws Exception {
    final Repo repo = RtRepoTest.repo(new FakeRequest());
    MatcherAssert.assertThat(repo.releases(), Matchers.notNullValue());
}
Also used : FakeRequest(com.jcabi.http.request.FakeRequest) Test(org.junit.Test)

Example 14 with FakeRequest

use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.

the class RtRepoTest method fetchNotifications.

/**
 * RtRepo can fetch notifications.
 */
@Test
public void fetchNotifications() {
    final Repo repo = RtRepoTest.repo(new FakeRequest());
    MatcherAssert.assertThat(repo.notifications(), Matchers.notNullValue());
}
Also used : FakeRequest(com.jcabi.http.request.FakeRequest) Test(org.junit.Test)

Example 15 with FakeRequest

use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.

the class RtRepoTest method fetchStars.

/**
 * RtRepo can fetch stars.
 */
@Test
public void fetchStars() {
    final Repo repo = RtRepoTest.repo(new FakeRequest());
    MatcherAssert.assertThat(repo.stars(), Matchers.notNullValue());
}
Also used : FakeRequest(com.jcabi.http.request.FakeRequest) Test(org.junit.Test)

Aggregations

FakeRequest (com.jcabi.http.request.FakeRequest)65 Test (org.junit.Test)65 MkGithub (com.jcabi.github.mock.MkGithub)9 JsonObject (javax.json.JsonObject)3 Request (com.jcabi.http.Request)2 ApacheRequest (com.jcabi.http.request.ApacheRequest)2 MkOrganization (com.jcabi.github.mock.MkOrganization)1 Response (com.jcabi.http.Response)1 MkContainer (com.jcabi.http.mock.MkContainer)1 MkGrizzlyContainer (com.jcabi.http.mock.MkGrizzlyContainer)1 JsonResponse (com.jcabi.http.response.JsonResponse)1