Package io.helidon.microprofile.testing
Class HelidonTestInfo.MethodInfo
java.lang.Object
io.helidon.microprofile.testing.HelidonTestInfo.MethodInfo
- All Implemented Interfaces:
HelidonTestDescriptor<Method>,HelidonTestInfo<Method>
- Enclosing interface:
HelidonTestInfo<T extends AnnotatedElement>
public static final class HelidonTestInfo.MethodInfo
extends Object
implements HelidonTestInfo<Method>
Method info.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.microprofile.testing.HelidonTestInfo
HelidonTestInfo.ClassInfo, HelidonTestInfo.MethodInfo -
Method Summary
Modifier and TypeMethodDescriptionaddBeans()Get the discoveredAddBeanannotations.Get the discoveredAddConfigBlockannotations.Get the discoveredAddConfigannotations.Get the discoveredAddConfigSourcemethods.Get the discoveredAddExtensionannotations.booleanaddJaxRs()Get the discoveredAddJaxRsannotation.<A extends Annotation>
Stream<A> annotations(Class<A> aType) Get annotations.<A extends Annotation,C extends Annotation>
Stream<A> annotations(Class<A> aType, Class<C> cType, Function<C, A[]> function) Get annotations.Get the class info.Get the discoveredConfigurationannotation.booleanGet the value of the discoveredDisableDiscoveryannotation.element()Get the annotated element.booleaninthashCode()id()Get the id.booleanIndicate if the container should be reset.Class<?> Get the test class.Get the test method.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.microprofile.testing.HelidonTestDescriptor
containsAnnotation, containsExtension, pinningDetection, pinningThreshold, resetPerTest
-
Method Details
-
id
Description copied from interface:HelidonTestInfoGet the id.- Specified by:
idin interfaceHelidonTestInfo<Method>- Returns:
- id
-
testClass
Description copied from interface:HelidonTestInfoGet the test class.- Specified by:
testClassin interfaceHelidonTestInfo<Method>- Returns:
- test class
-
testMethod
Description copied from interface:HelidonTestInfoGet the test method.- Specified by:
testMethodin interfaceHelidonTestInfo<Method>- Returns:
- test method
-
classInfo
Description copied from interface:HelidonTestInfoGet the class info.- Specified by:
classInfoin interfaceHelidonTestInfo<Method>- Returns:
- ClassInfo
-
element
Description copied from interface:HelidonTestDescriptorGet the annotated element.- Specified by:
elementin interfaceHelidonTestDescriptor<Method>- Returns:
- element
-
addExtensions
Description copied from interface:HelidonTestDescriptorGet the discoveredAddExtensionannotations.- Specified by:
addExtensionsin interfaceHelidonTestDescriptor<Method>- Returns:
- annotations
-
addBeans
Description copied from interface:HelidonTestDescriptorGet the discoveredAddBeanannotations.- Specified by:
addBeansin interfaceHelidonTestDescriptor<Method>- Returns:
- annotations
-
addJaxRs
public boolean addJaxRs()Description copied from interface:HelidonTestDescriptorGet the discoveredAddJaxRsannotation.- Specified by:
addJaxRsin interfaceHelidonTestDescriptor<Method>- Returns:
trueif the annotation is present
-
disableDiscovery
public boolean disableDiscovery()Description copied from interface:HelidonTestDescriptorGet the value of the discoveredDisableDiscoveryannotation.- Specified by:
disableDiscoveryin interfaceHelidonTestDescriptor<Method>- Returns:
DisableDiscovery.value()orfalseif not found
-
configuration
Description copied from interface:HelidonTestDescriptorGet the discoveredConfigurationannotation.- Specified by:
configurationin interfaceHelidonTestDescriptor<Method>- Returns:
- annotation
-
addConfigs
Description copied from interface:HelidonTestDescriptorGet the discoveredAddConfigannotations.- Specified by:
addConfigsin interfaceHelidonTestDescriptor<Method>- Returns:
- annotations
-
addConfigBlocks
Description copied from interface:HelidonTestDescriptorGet the discoveredAddConfigBlockannotations.- Specified by:
addConfigBlocksin interfaceHelidonTestDescriptor<Method>- Returns:
- annotations
-
addConfigSources
Description copied from interface:HelidonTestDescriptorGet the discoveredAddConfigSourcemethods.- Specified by:
addConfigSourcesin interfaceHelidonTestDescriptor<Method>- Returns:
- annotations
-
annotations
public <A extends Annotation,C extends Annotation> Stream<A> annotations(Class<A> aType, Class<C> cType, Function<C, A[]> function) Description copied from interface:HelidonTestDescriptorGet annotations.- Specified by:
annotationsin interfaceHelidonTestDescriptor<Method>- Type Parameters:
A- annotation typeC- container type- Parameters:
aType- annotation typecType- annotation container typefunction- function to inflate from container- Returns:
- annotations
-
annotations
Description copied from interface:HelidonTestDescriptorGet annotations.- Specified by:
annotationsin interfaceHelidonTestDescriptor<Method>- Type Parameters:
A- annotation type- Parameters:
aType- annotation type- Returns:
- annotations
-
requiresReset
public boolean requiresReset()Description copied from interface:HelidonTestInfoIndicate if the container should be reset. For a class this is resolved viaHelidonTest#resetPerTest(). For a method this is inferred if any of the following annotations is used:- Specified by:
requiresResetin interfaceHelidonTestInfo<Method>- Returns:
trueif reset is required,falseotherwise
-
equals
-
hashCode
public int hashCode() -
toString
-