Module org.junit.jupiter.engine
Class TempDirectory.FieldContext
- java.lang.Object
-
- org.junit.jupiter.engine.extension.TempDirectory.FieldContext
-
- All Implemented Interfaces:
AnnotatedElementContext
- Enclosing class:
- TempDirectory
private static class TempDirectory.FieldContext extends java.lang.Object implements AnnotatedElementContext
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.reflect.Field
field
-
Constructor Summary
Constructors Modifier Constructor Description private
FieldContext(java.lang.reflect.Field field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.AnnotatedElement
getAnnotatedElement()
Get theAnnotatedElement
for this context.java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.junit.jupiter.api.extension.AnnotatedElementContext
findAnnotation, findRepeatableAnnotations, isAnnotated
-
-
-
-
Method Detail
-
getAnnotatedElement
public java.lang.reflect.AnnotatedElement getAnnotatedElement()
Description copied from interface:AnnotatedElementContext
Get theAnnotatedElement
for this context.WARNING
When searching for annotations on the annotated element in this context, favor
AnnotatedElementContext.isAnnotated(Class)
,AnnotatedElementContext.findAnnotation(Class)
, andAnnotatedElementContext.findRepeatableAnnotations(Class)
over methods in theAnnotatedElement
API due to a bug injavac
on JDK versions prior to JDK 9.- Specified by:
getAnnotatedElement
in interfaceAnnotatedElementContext
- Returns:
- the annotated element; never
null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-