Package io.helidon.microprofile.testing
Class HelidonTestInfo.ClassInfo
java.lang.Object
io.helidon.microprofile.testing.HelidonTestInfo.ClassInfo
- All Implemented Interfaces:
HelidonTestDescriptor<Class<?>>
,HelidonTestInfo<Class<?>>
- Enclosing interface:
HelidonTestInfo<T extends AnnotatedElement>
public static final class HelidonTestInfo.ClassInfo
extends Object
implements HelidonTestInfo<Class<?>>
Class 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.Class
<?> element()
Get the annotated element.boolean
int
hashCode()
id()
Get the id.boolean
Get the discovered value of@HelidonTest(pinningDetection = true)
.long
Get the discovered value of@HelidonTest(pinningThreshold = 50)
.boolean
Get the discovered value of@HelidonTest(resetPerTest = true)
.Class
<?> Get the test class.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
addBeans, addConfigBlocks, addConfigs, addConfigSources, addExtensions, addJaxRs, annotations, annotations, configuration, containsAnnotation, containsExtension, disableDiscovery, element, pinningDetection, pinningThreshold, resetPerTest
Methods inherited from interface io.helidon.microprofile.testing.HelidonTestInfo
requiresReset, testMethod
-
Method Details
-
id
Description copied from interface:HelidonTestInfo
Get the id.- Specified by:
id
in interfaceHelidonTestInfo<Class<?>>
- Returns:
- id
-
testClass
Description copied from interface:HelidonTestInfo
Get the test class.- Specified by:
testClass
in interfaceHelidonTestInfo<Class<?>>
- Returns:
- test class
-
classInfo
Description copied from interface:HelidonTestInfo
Get the class info.- Specified by:
classInfo
in interfaceHelidonTestInfo<Class<?>>
- Returns:
- ClassInfo
-
equals
-
hashCode
public int hashCode() -
toString
-
element
Description copied from interface:HelidonTestDescriptor
Get the annotated element.- Specified by:
element
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
- element
-
resetPerTest
public boolean resetPerTest()Description copied from interface:HelidonTestDescriptor
Get the discovered value of@HelidonTest(resetPerTest = true)
.- Specified by:
resetPerTest
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
resetPerTest
value
-
pinningDetection
public boolean pinningDetection()Description copied from interface:HelidonTestDescriptor
Get the discovered value of@HelidonTest(pinningDetection = true)
.- Specified by:
pinningDetection
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
pinningDetection
value
-
pinningThreshold
public long pinningThreshold()Description copied from interface:HelidonTestDescriptor
Get the discovered value of@HelidonTest(pinningThreshold = 50)
.- Specified by:
pinningThreshold
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
pinningThreshold
value
-
addExtensions
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddExtension
annotations.- Specified by:
addExtensions
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
- annotations
-
addBeans
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddBean
annotations.- Specified by:
addBeans
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
- annotations
-
addJaxRs
public boolean addJaxRs()Description copied from interface:HelidonTestDescriptor
Get the discoveredAddJaxRs
annotation.- Specified by:
addJaxRs
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- 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<T extends AnnotatedElement>
- Returns:
DisableDiscovery.value()
orfalse
if not found
-
configuration
Description copied from interface:HelidonTestDescriptor
Get the discoveredConfiguration
annotation.- Specified by:
configuration
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
- annotation
-
addConfigs
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddConfig
annotations.- Specified by:
addConfigs
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
- annotations
-
addConfigBlocks
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddConfigBlock
annotations.- Specified by:
addConfigBlocks
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- Returns:
- annotations
-
addConfigSources
Description copied from interface:HelidonTestDescriptor
Get the discoveredAddConfigSource
methods.- Specified by:
addConfigSources
in interfaceHelidonTestDescriptor<T extends AnnotatedElement>
- 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<T extends AnnotatedElement>
- 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<T extends AnnotatedElement>
- Type Parameters:
A
- annotation type- Parameters:
aType
- annotation type- Returns:
- annotations
-