Java: refactor QL

This commit is contained in:
Jami Cogswell
2025-03-21 15:22:59 -04:00
parent ccbe77eb09
commit f17e7266cf
2 changed files with 17 additions and 17 deletions

View File

@@ -112,6 +112,14 @@ class JUnitJupiterTestMethod extends Method {
}
}
/**
* A JUnit test class that contains at least one method annotated with
* `org.junit.jupiter.api.Test`.
*/
class JUnit5TestClass extends Class {
JUnit5TestClass() { this.getAMethod() instanceof JUnitJupiterTestMethod }
}
/**
* A JUnit `@Ignore` annotation.
*/