mirror of
https://github.com/github/codeql.git
synced 2026-05-03 12:45:27 +02:00
Merge pull request #11418 from alexet/alexet/mockito-class-rename
Java: Add new Mockito runner class location.
This commit is contained in:
@@ -53,9 +53,11 @@ class MockitoInitedTest extends Class {
|
||||
MockitoInitedTest() {
|
||||
// Tests run with the Mockito runner.
|
||||
exists(RunWithAnnotation a | a = this.getAnAncestor().getAnAnnotation() |
|
||||
a.getRunner().(RefType).hasQualifiedName("org.mockito.junit", "MockitoJUnitRunner")
|
||||
or
|
||||
// Deprecated styles.
|
||||
a.getRunner().(RefType).hasQualifiedName("org.mockito.runners", "MockitoJUnitRunner")
|
||||
or
|
||||
// Deprecated style.
|
||||
a.getRunner().(RefType).hasQualifiedName("org.mockito.runners", "MockitoJUnit44Runner")
|
||||
)
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user