Interface HelidonTestDescriptor<T extends AnnotatedElement>

Type Parameters:
T - element type
All Known Subinterfaces:
HelidonTestInfo<T>
All Known Implementing Classes:
HelidonTestDescriptorBase, HelidonTestInfo.ClassInfo, HelidonTestInfo.MethodInfo

public interface HelidonTestDescriptor<T extends AnnotatedElement>
Describes annotations for a test class or method.
  • Method Details

    • element

      T element()
      Get the annotated element.
      Returns:
      element
    • resetPerTest

      default boolean resetPerTest()
      Get the discovered value of @HelidonTest(resetPerTest = true).
      Returns:
      resetPerTest value
    • pinningDetection

      default boolean pinningDetection()
      Get the discovered value of @HelidonTest(pinningDetection = true).
      Returns:
      pinningDetection value
    • pinningThreshold

      default long pinningThreshold()
      Get the discovered value of @HelidonTest(pinningThreshold = 50).
      Returns:
      pinningThreshold value
    • addJaxRs

      boolean addJaxRs()
      Get the discovered AddJaxRs annotation.
      Returns:
      true if the annotation is present
    • disableDiscovery

      boolean disableDiscovery()
      Get the value of the discovered DisableDiscovery annotation.
      Returns:
      DisableDiscovery.value() or false if not found
    • addExtensions

      List<AddExtension> addExtensions()
      Get the discovered AddExtension annotations.
      Returns:
      annotations
    • addBeans

      List<AddBean> addBeans()
      Get the discovered AddBean annotations.
      Returns:
      annotations
    • configuration

      Optional<Configuration> configuration()
      Get the discovered Configuration annotation.
      Returns:
      annotation
    • addConfigs

      List<AddConfig> addConfigs()
      Get the discovered AddConfig annotations.
      Returns:
      annotations
    • addConfigBlocks

      List<AddConfigBlock> addConfigBlocks()
      Get the discovered AddConfigBlock annotations.
      Returns:
      annotations
    • addConfigSources

      List<Method> addConfigSources()
      Get the discovered AddConfigSource methods.
      Returns:
      annotations
    • containsExtension

      default boolean containsExtension(Class<? extends Extension> type)
      Test if the given extension is configured.
      Parameters:
      type - extension type
      Returns:
      true if configured, false otherwise
    • annotations

      <A extends Annotation, C extends Annotation> Stream<A> annotations(Class<A> aType, Class<C> cType, Function<C,A[]> function)
      Get annotations.
      Type Parameters:
      A - annotation type
      C - container type
      Parameters:
      aType - annotation type
      cType - annotation container type
      function - function to inflate from container
      Returns:
      annotations
    • annotations

      <A extends Annotation> Stream<A> annotations(Class<A> aType)
      Get annotations.
      Type Parameters:
      A - annotation type
      Parameters:
      aType - annotation type
      Returns:
      annotations
    • containsAnnotation

      default boolean containsAnnotation(Class<? extends Annotation> aType)
      Test if an annotation of the given type is found.
      Parameters:
      aType - annotation type
      Returns:
      true if found