junit 5: check only explicit ExtendsWith as parameterizedTest has it's own extension (IDEA-172259)

This commit is contained in:
Anna Kozlova
2017-05-12 15:53:50 +03:00
parent 335b50b6ba
commit a7be4e8beb
2 changed files with 5 additions and 1 deletions
@@ -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))
}
}
@@ -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) {
}
}