mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
junit 5: check only explicit ExtendsWith as parameterizedTest has it's own extension (IDEA-172259)
This commit is contained in:
+1
-1
@@ -247,7 +247,7 @@ class JUnit5MalformedParameterizedInspection : BaseJavaBatchLocalInspectionTool(
|
||||
!InheritanceUtil.isInheritor(it.type, JUnitCommonClassNames.ORG_JUNIT_JUPITER_API_TEST_INFO) &&
|
||||
!InheritanceUtil.isInheritor(it.type, JUnitCommonClassNames.ORG_JUNIT_JUPITER_API_TEST_REPORTER)
|
||||
}
|
||||
.count() > 1 && !MetaAnnotationUtil.isMetaAnnotated(method, Collections.singleton(
|
||||
.count() > 1 && !AnnotationUtil.isAnnotated(method, Collections.singleton(
|
||||
JUnitCommonClassNames.ORG_JUNIT_JUPITER_API_EXTENSION_EXTEND_WITH))
|
||||
}
|
||||
}
|
||||
|
||||
+4
@@ -7,4 +7,8 @@ class MyJunit5 {
|
||||
@ValueSource(strings = "foo")
|
||||
void testWithRegularParameterResolver(String argument, TestInfo testReporter) {
|
||||
}
|
||||
@ParameterizedTest
|
||||
<warning descr="Multiple parameters are not supported by this source">@ValueSource(strings = "foo")</warning>
|
||||
void testWithMultipleParams(String argument, int i) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user