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 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.Class<?> element()Get the annotated element.booleaninthashCode()id()Get the id.booleanGet the discovered value of@HelidonTest(pinningDetection = true).longGet the discovered value of@HelidonTest(pinningThreshold = 50).booleanGet 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, waitMethods inherited from interface io.helidon.microprofile.testing.HelidonTestDescriptor
addBeans, addConfigBlocks, addConfigs, addConfigSources, addExtensions, addJaxRs, annotations, annotations, configuration, containsAnnotation, containsExtension, disableDiscovery, element, pinningDetection, pinningThreshold, resetPerTestMethods inherited from interface io.helidon.microprofile.testing.HelidonTestInfo
requiresReset, testMethod
-
Method Details
-
id
Description copied from interface:HelidonTestInfoGet the id.- Specified by:
idin interfaceHelidonTestInfo<Class<?>>- Returns:
- id
-
testClass
Description copied from interface:HelidonTestInfoGet the test class.- Specified by:
testClassin interfaceHelidonTestInfo<Class<?>>- Returns:
- test class
-
classInfo
Description copied from interface:HelidonTestInfoGet the class info.- Specified by:
classInfoin interfaceHelidonTestInfo<Class<?>>- Returns:
- ClassInfo
-
equals
-
hashCode
public int hashCode() -
toString
-
element
Description copied from interface:HelidonTestDescriptorGet the annotated element.- Specified by:
elementin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
- element
-
resetPerTest
public boolean resetPerTest()Description copied from interface:HelidonTestDescriptorGet the discovered value of@HelidonTest(resetPerTest = true).- Specified by:
resetPerTestin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
resetPerTestvalue
-
pinningDetection
public boolean pinningDetection()Description copied from interface:HelidonTestDescriptorGet the discovered value of@HelidonTest(pinningDetection = true).- Specified by:
pinningDetectionin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
pinningDetectionvalue
-
pinningThreshold
public long pinningThreshold()Description copied from interface:HelidonTestDescriptorGet the discovered value of@HelidonTest(pinningThreshold = 50).- Specified by:
pinningThresholdin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
pinningThresholdvalue
-
addExtensions
Description copied from interface:HelidonTestDescriptorGet the discoveredAddExtensionannotations.- Specified by:
addExtensionsin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
- annotations
-
addBeans
Description copied from interface:HelidonTestDescriptorGet the discoveredAddBeanannotations.- Specified by:
addBeansin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
- annotations
-
addJaxRs
public boolean addJaxRs()Description copied from interface:HelidonTestDescriptorGet the discoveredAddJaxRsannotation.- Specified by:
addJaxRsin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
trueif the annotation is present
-
disableDiscovery
public boolean disableDiscovery()Description copied from interface:HelidonTestDescriptorGet the value of the discoveredDisableDiscoveryannotation.- Specified by:
disableDiscoveryin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
DisableDiscovery.value()orfalseif not found
-
configuration
Description copied from interface:HelidonTestDescriptorGet the discoveredConfigurationannotation.- Specified by:
configurationin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
- annotation
-
addConfigs
Description copied from interface:HelidonTestDescriptorGet the discoveredAddConfigannotations.- Specified by:
addConfigsin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
- annotations
-
addConfigBlocks
Description copied from interface:HelidonTestDescriptorGet the discoveredAddConfigBlockannotations.- Specified by:
addConfigBlocksin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
- annotations
-
addConfigSources
Description copied from interface:HelidonTestDescriptorGet the discoveredAddConfigSourcemethods.- Specified by:
addConfigSourcesin 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:HelidonTestDescriptorGet annotations.- Specified by:
annotationsin 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:HelidonTestDescriptorGet annotations.- Specified by:
annotationsin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Type Parameters:
A- annotation type- Parameters:
aType- annotation type- Returns:
- annotations
-