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 -
Method Summary
Modifier and TypeMethodDescriptionprivate void
getInterfaceMethodsForAnnotations
(Map<Class<? extends Annotation>, List<org.junit.runners.model.FrameworkMethod>> methodsForAnnotations, Class<?> clazz) 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
-
Constructor Details
-
Java8TestClass
Creates aTestClass
wrappingklass
. 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 ofTestClass
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 classorg.junit.runners.model.TestClass
-
getInterfaceMethodsForAnnotations
private void getInterfaceMethodsForAnnotations(Map<Class<? extends Annotation>, List<org.junit.runners.model.FrameworkMethod>> methodsForAnnotations, Class<?> clazz) -
getInterfaces
-