mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[test framework] fix for check for unconventionally named tests in JUnit 5
GitOrigin-RevId: fd8b9813733446a3cc3d6202a94ed6955296c4fc
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0895fafd5c
commit
a0e9ef105f
@@ -618,7 +618,8 @@ public class TestCaseLoader {
|
||||
// called reflectively from `JUnit5TeamCityRunnerForTestsOnClasspath#createClassNameFilter`
|
||||
@SuppressWarnings("unused")
|
||||
public static boolean isClassNameIncluded(String className) {
|
||||
if (!ClassFinder.isSuitableTestClassName(className, INCLUDE_UNCONVENTIONALLY_NAMED_TESTS)) {
|
||||
String classNameWithoutPackage = StringsKt.substringAfterLast(className, '.', className);
|
||||
if (!ClassFinder.isSuitableTestClassName(classNameWithoutPackage, INCLUDE_UNCONVENTIONALLY_NAMED_TESTS)) {
|
||||
return false;
|
||||
}
|
||||
if ("_FirstInSuiteTest".equals(className) || "_LastInSuiteTest".equals(className)) {
|
||||
|
||||
Reference in New Issue
Block a user