Module org.junit.vintage.engine
Class TestSourceProvider
- java.lang.Object
-
- org.junit.vintage.engine.descriptor.TestSourceProvider
-
@API(status=INTERNAL, since="5.6") public class TestSourceProvider extends java.lang.Object
- Since:
- 5.6
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>>
methodsCache
private static TestSource
NULL_SOURCE
private java.util.Map<org.junit.runner.Description,TestSource>
testSourceCache
-
Constructor Summary
Constructors Constructor Description TestSourceProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private TestSource
computeTestSource(org.junit.runner.Description description)
private java.lang.reflect.Method
findMethod(java.lang.Class<?> testClass, java.lang.String methodName)
TestSource
findTestSource(org.junit.runner.Description description)
private java.lang.String
sanitizeMethodName(java.lang.String methodName)
-
-
-
Field Detail
-
NULL_SOURCE
private static final TestSource NULL_SOURCE
-
testSourceCache
private final java.util.Map<org.junit.runner.Description,TestSource> testSourceCache
-
methodsCache
private final java.util.Map<java.lang.Class<?>,java.util.List<java.lang.reflect.Method>> methodsCache
-
-
Method Detail
-
findTestSource
public TestSource findTestSource(org.junit.runner.Description description)
-
computeTestSource
private TestSource computeTestSource(org.junit.runner.Description description)
-
sanitizeMethodName
private java.lang.String sanitizeMethodName(java.lang.String methodName)
-
findMethod
private java.lang.reflect.Method findMethod(java.lang.Class<?> testClass, java.lang.String methodName)
-
-