Search in sources :

Example 1 with PublishFilter

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);
}
Also used : PublishFilter(org.gradle.api.artifacts.maven.PublishFilter) Test(org.junit.Test)

Aggregations

PublishFilter (org.gradle.api.artifacts.maven.PublishFilter)1 Test (org.junit.Test)1