use of com.google.gerrit.reviewdb.client.Project.NameKey in project gerrit by GerritCodeReview.
the class RepositoryConfigTest method ownerGroupsForStarFilter.
@Test
public void ownerGroupsForStarFilter() {
ImmutableList<String> ownerGroups = ImmutableList.of("group1", "group2");
configureOwnerGroups("*", ownerGroups);
assertThat(repoCfg.getOwnerGroups(new NameKey("someProject"))).containsExactlyElementsIn(ownerGroups);
}
use of com.google.gerrit.reviewdb.client.Project.NameKey in project gerrit by GerritCodeReview.
the class RepositoryConfigTest method ownerGroupsForSpecificFilter.
@Test
public void ownerGroupsForSpecificFilter() {
ImmutableList<String> ownerGroups = ImmutableList.of("group1", "group2");
configureOwnerGroups("someProject", ownerGroups);
assertThat(repoCfg.getOwnerGroups(new NameKey("someOtherProject"))).isEmpty();
assertThat(repoCfg.getOwnerGroups(new NameKey("someProject"))).containsExactlyElementsIn(ownerGroups);
}