Class Java8TestClass

  • All Implemented Interfaces:
    org.junit.runners.model.Annotatable

    public class Java8TestClass
    extends org.junit.runners.model.TestClass
    • Constructor Summary

      Constructors 
      Constructor Description
      Java8TestClass​(java.lang.Class<?> klass)
      Creates a TestClass wrapping klass.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void getInterfaceMethodsForAnnotations​(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.util.List<org.junit.runners.model.FrameworkMethod>> methodsForAnnotations, java.lang.Class<?> clazz)  
      private static java.util.List<java.lang.Class<?>> getInterfaces​(java.lang.Class<?> testClass)  
      protected void scanAnnotatedMembers​(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.util.List<org.junit.runners.model.FrameworkMethod>> methodsForAnnotations, java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.util.List<org.junit.runners.model.FrameworkField>> fieldsForAnnotations)  
      • Methods inherited from class org.junit.runners.model.TestClass

        addToAnnotationLists, collectAnnotatedFieldValues, collectAnnotatedMethodValues, equals, getAnnotatedFields, getAnnotatedFields, getAnnotatedFieldValues, getAnnotatedMethods, getAnnotatedMethods, getAnnotatedMethodValues, getAnnotation, getAnnotations, getJavaClass, getName, getOnlyConstructor, hashCode, isANonStaticInnerClass, isPublic
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Java8TestClass

        public Java8TestClass​(java.lang.Class<?> klass)
        Creates a TestClass wrapping klass. Each time this constructor executes, the class is scanned for annotations, which can be an expensive process (we hope in future JDK's it will not be.) Therefore, try to share instances of TestClass where possible.
    • Method Detail

      • scanAnnotatedMembers

        protected void scanAnnotatedMembers​(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.util.List<org.junit.runners.model.FrameworkMethod>> methodsForAnnotations,
                                            java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.util.List<org.junit.runners.model.FrameworkField>> fieldsForAnnotations)
        Overrides:
        scanAnnotatedMembers in class org.junit.runners.model.TestClass
      • getInterfaceMethodsForAnnotations

        private void getInterfaceMethodsForAnnotations​(java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​java.util.List<org.junit.runners.model.FrameworkMethod>> methodsForAnnotations,
                                                       java.lang.Class<?> clazz)
      • getInterfaces

        private static java.util.List<java.lang.Class<?>> getInterfaces​(java.lang.Class<?> testClass)