use of com.meisolsson.githubsdk.model.Repository in project PocketHub by pockethub.
the class CreateCommentActivityTest method setUp.
@Before
public void setUp() {
User user = User.builder().login("owner").build();
Repository repo = Repository.builder().name("name").owner(user).build();
activityTestRule.launchActivity(CreateCommentActivity.createIntent(repo, "abcdef"));
}
use of com.meisolsson.githubsdk.model.Repository in project PocketHub by pockethub.
the class EditIssueActivityTest method setUp.
@Before
public void setUp() {
Repository repo = InfoUtils.createRepoFromData("owner", "repo");
activityTestRule.launchActivity(EditIssueActivity.Companion.createIntent(repo));
}
use of com.meisolsson.githubsdk.model.Repository in project PocketHub by pockethub.
the class RepositoryUriMatcherTest method testHttpsUriWithOwnerAndName.
/**
* Verify URI with owner but no name
*/
@Test
public void testHttpsUriWithOwnerAndName() {
Repository repo = RepositoryUriMatcher.getRepository(Uri.parse("https://github.com/mojombo/jekyll"));
assertNotNull(repo);
assertEquals("jekyll", repo.name());
assertNotNull(repo.owner());
assertEquals("mojombo", repo.owner().login());
}
Aggregations