public class TestMethodFilter
extends java.lang.Object
Constructor and Description |
---|
TestMethodFilter(UserIdentifier producerIdentifier,
UserIdentifier consumerIdentifier)
Initialize filter with the given identifiers which are used for filtering.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<org.junit.runners.model.FrameworkMethod> |
filter(java.util.List<org.junit.runners.model.FrameworkMethod> methods) |
boolean |
shouldRun(org.junit.runners.model.FrameworkMethod frameworkMethod) |
boolean |
shouldRun(java.util.Optional<RunWithUsers> runWithUsersAnnotation,
java.util.Optional<IgnoreForUsers> ignoreForUsersAnnotation,
java.lang.Class<?> declaringClass,
java.lang.Class<?> runner) |
public TestMethodFilter(UserIdentifier producerIdentifier, UserIdentifier consumerIdentifier)
producerIdentifier
- Producer identifierconsumerIdentifier
- Consumer identifierpublic boolean shouldRun(org.junit.runners.model.FrameworkMethod frameworkMethod)
frameworkMethod
- Method to test against identifierspublic boolean shouldRun(java.util.Optional<RunWithUsers> runWithUsersAnnotation, java.util.Optional<IgnoreForUsers> ignoreForUsersAnnotation, java.lang.Class<?> declaringClass, java.lang.Class<?> runner)
public java.util.List<org.junit.runners.model.FrameworkMethod> filter(java.util.List<org.junit.runners.model.FrameworkMethod> methods)
methods
- List of methods to filter