Class DefaultMethodDescriptor
- java.lang.Object
-
- org.junit.jupiter.engine.discovery.AbstractAnnotatedDescriptorWrapper<java.lang.reflect.Method>
-
- org.junit.jupiter.engine.discovery.DefaultMethodDescriptor
-
- All Implemented Interfaces:
MethodDescriptor
class DefaultMethodDescriptor extends AbstractAnnotatedDescriptorWrapper<java.lang.reflect.Method> implements MethodDescriptor
Default implementation ofMethodDescriptor
, backed by aMethodBasedTestDescriptor
.- Since:
- 5.4
-
-
Constructor Summary
Constructors Constructor Description DefaultMethodDescriptor(MethodBasedTestDescriptor testDescriptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.reflect.Method
getMethod()
Get the method for this descriptor.java.lang.String
toString()
-
Methods inherited from class org.junit.jupiter.engine.discovery.AbstractAnnotatedDescriptorWrapper
findAnnotation, findRepeatableAnnotations, getAnnotatedElement, getDisplayName, getTestDescriptor, isAnnotated
-
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.MethodDescriptor
findAnnotation, findRepeatableAnnotations, getDisplayName, isAnnotated
-
-
-
-
Constructor Detail
-
DefaultMethodDescriptor
DefaultMethodDescriptor(MethodBasedTestDescriptor testDescriptor)
-
-
Method Detail
-
getMethod
public final java.lang.reflect.Method getMethod()
Description copied from interface:MethodDescriptor
Get the method for this descriptor.- Specified by:
getMethod
in interfaceMethodDescriptor
- Returns:
- the method; never
null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-