We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df3dc6f + e24e3bf commit 3c7f751Copy full SHA for 3c7f751
java/ql/lib/semmle/code/java/frameworks/Mockito.qll
@@ -53,9 +53,11 @@ class MockitoInitedTest extends Class {
53
MockitoInitedTest() {
54
// Tests run with the Mockito runner.
55
exists(RunWithAnnotation a | a = this.getAnAncestor().getAnAnnotation() |
56
+ a.getRunner().(RefType).hasQualifiedName("org.mockito.junit", "MockitoJUnitRunner")
57
+ or
58
+ // Deprecated styles.
59
a.getRunner().(RefType).hasQualifiedName("org.mockito.runners", "MockitoJUnitRunner")
60
or
- // Deprecated style.
61
a.getRunner().(RefType).hasQualifiedName("org.mockito.runners", "MockitoJUnit44Runner")
62
)
63
0 commit comments