CodeQL library for Java/Kotlin
codeql/java-all 0.9.2-dev (changelog, source)
Search

Module TestEntryPoints

Import path

import semmle.code.java.deadcode.TestEntryPoints

Imports

Cucumber

Cucumber is an open-source project for writing executable acceptance tests in human-readable .feature files.

DeadCode
FitNesseEntryPoints
Mockito

Provides classes and predicates for identifying use of the Mockito mocking framework.

UnitTests

Provides classes and predicates for working with test classes and methods.

java

Provides all default Java QL imports.

Classes

BeforeOrAfterEntry

Methods that are called before or after tests.

CucumberConstructedClass

A class constructed by Cucumber.

CucumberStepDefinitionEntryPoint

A “step definition” that may be called by Cucumber when executing an acceptance test.

JUnitCategory

Any types used as a category in a JUnit @Category annotation should be considered live.

JUnitDataPointField

A field which provides a JUnit DataPoint for a theory.

JUnitTheories

A method in a test class that is either a JUnit theory, or a method providing data points for a theory.

MockitoCalledByInjection

Callables called by Mockito when performing injection.

MockitoReadField

Mock fields that are read by Mockito when performing injection.

RunWithReflectivelyConstructedClass
TestMethodEntry

A test method, suite, or an associated setup/teardown method.

TestNGDataProvidersEntryPoint

A @DataProvider TestNG method which is live because it is accessed by at least one test.

TestNGFactoryEntryPoint

A @Factory TestNG method or constructor which is live.

TestNGReflectivelyConstructedListener

A listener that will be reflectively constructed by TestNG.

TestRefectivelyConstructedClass