Class Java8TestClass

java.lang.Object
org.junit.runners.model.TestClass
org.eclipse.collections.impl.test.junit.Java8TestClass
All Implemented Interfaces:
org.junit.runners.model.Annotatable

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

    Constructors
    Constructor
    Description
    Creates a TestClass wrapping klass.
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    getInterfaceMethodsForAnnotations(Map<Class<? extends Annotation>,List<org.junit.runners.model.FrameworkMethod>> methodsForAnnotations, Class<?> clazz)
     
    private static List<Class<?>>
    getInterfaces(Class<?> testClass)
     
    protected void
    scanAnnotatedMembers(Map<Class<? extends Annotation>,List<org.junit.runners.model.FrameworkMethod>> methodsForAnnotations, Map<Class<? extends Annotation>,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 Details

    • Java8TestClass

      public Java8TestClass(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 Details

    • scanAnnotatedMembers

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

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

      private static List<Class<?>> getInterfaces(Class<?> testClass)