Class TestSourceProvider


  • @API(status=INTERNAL,
         since="5.6")
    public class TestSourceProvider
    extends java.lang.Object
    Since:
    5.6
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • TestSourceProvider

        public TestSourceProvider()
    • 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)