in surefire-api/src/main/java/org/apache/maven/surefire/api/testset/TestListResolver.java [178:205]
public boolean shouldRun(String testClassFile, String methodName) {
if (isEmpty() || isBlank(testClassFile) && isBlank(methodName)) {
return true;
} else {
boolean shouldRun = false;
if (getIncludedPatterns().isEmpty()) {
shouldRun = true;
} else {
for (ResolvedTest filter : getIncludedPatterns()) {
if (filter.matchAsInclusive(testClassFile, methodName)) {
shouldRun = true;
break;
}
}
}
if (shouldRun) {
for (ResolvedTest filter : getExcludedPatterns()) {
if (filter.matchAsExclusive(testClassFile, methodName)) {
shouldRun = false;
break;
}
}
}
return shouldRun;
}
}