/** * Set up test fixtures. * * @throws Exception If some errors occurred. */ @BeforeClass public static void setUp() throws Exception { final String key = System.getProperty("failsafe.github.key"); Assume.assumeThat(key, Matchers.notNullValue()); final Github github = new RtGithub(key); repos = github.repos(); repo = rule.repo(repos); }
/** * Create and return repo to test. * * @return Repo * @throws Exception If some problem inside */ private static Repo repo() throws Exception { final String key = System.getProperty("failsafe.github.key"); Assume.assumeThat(key, Matchers.notNullValue()); final Github github = new RtGithub(key); return github.repos().get(RtAssigneesITCase.coordinates()); }