mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-05 08:21:21 +00:00
@@ -424,4 +424,20 @@ public class GHRepositoryTest extends AbstractGitHubWireMockTest {
|
||||
assertThat(refs, notNullValue());
|
||||
assertThat(refs.size(), greaterThan(90));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkWatchersCount() throws Exception {
|
||||
snapshotNotAllowed();
|
||||
GHRepository repo = getTempRepository();
|
||||
int watchersCount = repo.getWatchers();
|
||||
assertEquals(10, watchersCount);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkStargazersCount() throws Exception {
|
||||
snapshotNotAllowed();
|
||||
GHRepository repo = getTempRepository();
|
||||
int stargazersCount = repo.getStargazersCount();
|
||||
assertEquals(10, stargazersCount);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user