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 Java8TestClass(java.lang.Class<?> klass)
Creates aTestClass
wrappingklass
.
-
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
-
-
-
-
Constructor Detail
-
Java8TestClass
public Java8TestClass(java.lang.Class<?> klass)
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 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 classorg.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)
-
-