Merge pull request #676 from alexanderrtaylor/issues-349

Issues 349
This commit is contained in:
Liam Newman
2020-01-23 17:49:39 -08:00
committed by GitHub
9 changed files with 540 additions and 0 deletions

View File

@@ -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);
}
}