use of org.gradle.api.artifacts.maven.PublishFilter in project gradle by gradle.
the class BasePomFilterContainerTest method getActivePomFiltersWithAdditionalFilters.
@Test
public void getActivePomFiltersWithAdditionalFilters() {
PublishFilter filter1 = context.mock(PublishFilter.class, "filter1");
PublishFilter filter2 = context.mock(PublishFilter.class, "filter2");
String testName1 = "name1";
String testName2 = "name2";
pomFilterContainer.addFilter(testName1, filter1);
pomFilterContainer.addFilter(testName2, filter2);
Set<PomFilter> actualActiveFilters = Sets.newLinkedHashSet(pomFilterContainer.getActivePomFilters());
assertEquals(2, actualActiveFilters.size());
checkIfInSet(testName1, filter1, actualActiveFilters);
checkIfInSet(testName2, filter2, actualActiveFilters);
}
Aggregations