Package io.helidon.microprofile.testing
Class HelidonTestDescriptorBase<T extends AnnotatedElement>
java.lang.Object
io.helidon.microprofile.testing.HelidonTestDescriptorBase<T>
- Type Parameters:
T- annotated element type
- All Implemented Interfaces:
HelidonTestDescriptor<T>
public abstract class HelidonTestDescriptorBase<T extends AnnotatedElement>
extends Object
implements HelidonTestDescriptor<T>
Base implementation.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHelidonTestDescriptorBase(T element) Create a new instance. -
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 discoveredConfigurationannotation.booleanGet the value of the discoveredDisableDiscoveryannotation.element()Get the annotated element.Lookup theAddBeanannotations.protected List<AddConfigBlock> Lookup theAddConfigBlockannotations.Lookup theAddConfigannotations.protected List<AddExtension> Lookup theAddExtensionannotations.protected booleanLookup theAddJaxRsannotation.protected Optional<Configuration> Lookup theConfigurationannotation.protected booleanLookup theDisableDiscoveryannotation.protected booleanLookup the value of@HelidonTest(pinningDetection = true).protected longLookup the value of@HelidonTest(pinningThreshold = 50).protected booleanLookup the value of@HelidonTest(resetPerTest = true).booleanGet the discovered value of@HelidonTest(pinningDetection = true).longGet the discovered value of@HelidonTest(pinningThreshold = 50).booleanGet the discovered value of@HelidonTest(resetPerTest = true).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.microprofile.testing.HelidonTestDescriptor
containsAnnotation, containsExtension
-
Constructor Details
-
HelidonTestDescriptorBase
Create a new instance.- Parameters:
element- element
-
-
Method Details
-
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
Get the discoveredAddConfigSourcemethods.- Specified by:
addConfigSourcesin interfaceHelidonTestDescriptor<T extends AnnotatedElement>- Returns:
- annotations
-
lookupResetPerTest
protected boolean lookupResetPerTest()Lookup the value of@HelidonTest(resetPerTest = true).- Returns:
resetPerTestvalue
-
lookupPinningDetection
protected boolean lookupPinningDetection()Lookup the value of@HelidonTest(pinningDetection = true).- Returns:
pinningDetectionvalue
-
lookupPinningThreshold
protected long lookupPinningThreshold()Lookup the value of@HelidonTest(pinningThreshold = 50).- Returns:
pinningThresholdvalue
-
lookupAddExtensions
Lookup theAddExtensionannotations.- Returns:
- annotations
-
lookupAddBeans
Lookup theAddBeanannotations.- Returns:
- annotations
-
lookupAddJaxRs
protected boolean lookupAddJaxRs()Lookup theAddJaxRsannotation.- Returns:
- annotation
-
lookupDisableDiscovery
protected boolean lookupDisableDiscovery()Lookup theDisableDiscoveryannotation.- Returns:
- annotation
-
lookupConfiguration
Lookup theConfigurationannotation.- Returns:
- annotation
-
lookupAddConfigs
Lookup theAddConfigannotations.- Returns:
- annotations
-
lookupAddConfigBlocks
Lookup theAddConfigBlockannotations.- 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
-