use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.
the class RtEventTest method canCompareInstances.
/**
* RtEvent should be able to compare different instances.
*
* @throws Exception when a problem occurs.
*/
@Test
public void canCompareInstances() throws Exception {
final RtEvent less = new RtEvent(new FakeRequest(), this.repo(), 1);
final RtEvent greater = new RtEvent(new FakeRequest(), this.repo(), 2);
MatcherAssert.assertThat(less.compareTo(greater), Matchers.lessThan(0));
MatcherAssert.assertThat(greater.compareTo(less), Matchers.greaterThan(0));
}
use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.
the class RtGithubTest method retrievesRepos.
/**
* RtGithub can retrieve its repos.
*
* @throws Exception if a problem occurs.
*/
@Test
public void retrievesRepos() throws Exception {
final RtGithub github = new RtGithub(new FakeRequest());
MatcherAssert.assertThat(github.repos(), Matchers.notNullValue());
}
use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.
the class RtGithubTest method retrievesMarkdown.
/**
* RtGithub can retrieve the markdown.
*
* @throws Exception if a problem occurs.
*/
@Test
public void retrievesMarkdown() throws Exception {
final RtGithub github = new RtGithub(new FakeRequest());
MatcherAssert.assertThat(github.markdown(), Matchers.notNullValue());
}
use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.
the class RtGithubTest method retrievesGitignores.
/**
* RtGithub can retrieve the gitignores.
* @throws Exception if a problem occurs.
*/
@Test
public void retrievesGitignores() throws Exception {
final RtGithub github = new RtGithub(new FakeRequest());
MatcherAssert.assertThat(github.gitignores(), Matchers.notNullValue());
}
use of com.jcabi.http.request.FakeRequest in project jcabi-github by jcabi.
the class RtGithubTest method retrievesUsers.
/**
* RtGithub can retrieve users.
*
* @throws Exception if a problem occurs.
*/
@Test
public void retrievesUsers() throws Exception {
final RtGithub github = new RtGithub(new FakeRequest());
MatcherAssert.assertThat(github.users(), Matchers.notNullValue());
}
Aggregations