@Test public void testListRepositories() throws Exception { final Map<String, RepositoryInfo> repos = rule.client().listRepositories(rule.project()).join(); // Should contain 2 "rNNN"s assertThat(repos.keySet()).containsExactlyInAnyOrder(Project.REPO_DOGMA, Project.REPO_META, rule.repo1(), rule.repo2()); for (RepositoryInfo r : repos.values()) { final Commit headCommit = r.lastCommit(); assertThat(headCommit).isNotNull(); } } }