A test using a data provider (annotated with @RunWith(DataProviderRunner.class)) fails on initialization with an IllegalArgumentException when JUinit categories are used in the project (not necessary in the test class).
Simply declare an interface and add the category excluded in your suite. The runner will fail which the category filter passed:
java.lang.IllegalArgumentException: Filter description NOT (interface com.tui.test.System OR interface com.tui.test.Integration) is not suppored by DataProviderFilter.
at com.tngtech.java.junit.dataprovider.DataProviderFilter.(DataProviderFilter.java:45)
at com.tngtech.java.junit.dataprovider.DataProviderRunner.filter(DataProviderRunner.java:42)
at org.junit.runner.manipulation.Filter.apply(Filter.java:97)
at org.junit.internal.requests.FilterRequest.getRunner(FilterRequest.java:32)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:80)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:49)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:69)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:50)
A test using a data provider (annotated with @RunWith(DataProviderRunner.class)) fails on initialization with an IllegalArgumentException when JUinit categories are used in the project (not necessary in the test class).
Simply declare an interface and add the category excluded in your suite. The runner will fail which the category filter passed: