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 discoveredAddBean
annotations.Get the discoveredAddConfigBlock
annotations.Get the discoveredAddConfig
annotations.Get the discoveredAddConfigSource
methods.Get the discoveredAddExtension
annotations.boolean
addJaxRs()
Get the discoveredAddJaxRs
annotation.<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 discoveredConfiguration
annotation.boolean
Get the value of the discoveredDisableDiscovery
annotation.element()
Get the annotated element.boolean
int
hashCode()
id()
Get the id.boolean
Indicate 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, wait
Methods inherited from interface io.helidon.microprofile.testing.HelidonTestDescriptor
containsAnnotation, containsExtension, pinningDetection, pinningThreshold, resetPerTest
-
Method Details
-
id
Description copied from interface:HelidonTestInfo
Get the id.- Specified by:
id
in interfaceHelidonTestInfo<Method>
- Returns:
- id
-
testClass
Description copied from interface:HelidonTestInfo
Get the test class.- Specified by:
testClass
in interfaceHelidonTestInfo<Method>
- Returns:
- test class
-
testMethod
Description copied from interface:HelidonTestInfo
Get the test method.- Specified by:
testMethod
in interfaceHelidonTestInfo<Method>
- Returns:
- test method
-
classInfo
Description copied from interface:HelidonTestInfo
Get the class info.- Specified by:
classInfo
in interfaceHelidonTestInfo<Method>
- Returns:
- ClassInfo
-
element
Description copied from interface:HelidonTestDescriptor
Get the annotated element.- Specified by:
element
in interfaceHelidonTestDescriptor<Method>
- Returns:
- element
-
addExtensions
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddExtension
annotations.- Specified by:
addExtensions
in interfaceHelidonTestDescriptor<Method>
- Returns:
- annotations
-
addBeans
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddBean
annotations.- Specified by:
addBeans
in interfaceHelidonTestDescriptor<Method>
- Returns:
- annotations
-
addJaxRs
public boolean addJaxRs()Description copied from interface:HelidonTestDescriptor
Get the discoveredAddJaxRs
annotation.- Specified by:
addJaxRs
in interfaceHelidonTestDescriptor<Method>
- Returns:
true
if the annotation is present
-
disableDiscovery
public boolean disableDiscovery()Description copied from interface:HelidonTestDescriptor
Get the value of the discoveredDisableDiscovery
annotation.- Specified by:
disableDiscovery
in interfaceHelidonTestDescriptor<Method>
- Returns:
DisableDiscovery.value()
orfalse
if not found
-
configuration
Description copied from interface:HelidonTestDescriptor
Get the discoveredConfiguration
annotation.- Specified by:
configuration
in interfaceHelidonTestDescriptor<Method>
- Returns:
- annotation
-
addConfigs
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddConfig
annotations.- Specified by:
addConfigs
in interfaceHelidonTestDescriptor<Method>
- Returns:
- annotations
-
addConfigBlocks
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddConfigBlock
annotations.- Specified by:
addConfigBlocks
in interfaceHelidonTestDescriptor<Method>
- Returns:
- annotations
-
addConfigSources
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddConfigSource
methods.- Specified by:
addConfigSources
in 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:HelidonTestDescriptor
Get annotations.- Specified by:
annotations
in 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:HelidonTestDescriptor
Get annotations.- Specified by:
annotations
in interfaceHelidonTestDescriptor<Method>
- Type Parameters:
A
- annotation type- Parameters:
aType
- annotation type- Returns:
- annotations
-
requiresReset
public boolean requiresReset()Description copied from interface:HelidonTestInfo
Indicate 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:
requiresReset
in interfaceHelidonTestInfo<Method>
- Returns:
true
if reset is required,false
otherwise
-
equals
-
hashCode
public int hashCode() -
toString
-