Class AnnotationHelper

java.lang.Object
com.soebes.itf.jupiter.extension.AnnotationHelper

class AnnotationHelper extends Object
Author:
Karl Heinz Marbaise
  • Method Details

    • hasProfiles

      static boolean hasProfiles(org.junit.jupiter.api.extension.ExtensionContext context)
      Parameters:
      context - ExtensionContext
      Returns:
      true if we have any @MavenProfile defined or false otherwise.
    • profiles

      static List<String> profiles(org.junit.jupiter.api.extension.ExtensionContext context)
      Get the profiles from the annotation.
      Parameters:
      context - ExtensionContext
      Returns:
      The stream with the profiles.
    • hasGoals

      static boolean hasGoals(org.junit.jupiter.api.extension.ExtensionContext context)
      Parameters:
      context - ExtensionContext
      Returns:
      true if we have any @MavenGoal defined or false otherwise.
    • goals

      static List<String> goals(org.junit.jupiter.api.extension.ExtensionContext context)
      Get the goals from the annotation either on test method level or on test class level.
      Parameters:
      context - ExtensionContext
      Returns:
      The stream with the goals.
    • hasOptions

      static boolean hasOptions(org.junit.jupiter.api.extension.ExtensionContext context)
      Parameters:
      context - ExtensionContext
      Returns:
      true if we have any @MavenOption defined or false otherwise.
    • options

      static List<String> options(org.junit.jupiter.api.extension.ExtensionContext context)
      Get the options from the class level, method level or nested class level.
      Parameters:
      context - ExtensionContext
      Returns:
      The stream with the options.
    • hasSystemProperties

      static boolean hasSystemProperties(org.junit.jupiter.api.extension.ExtensionContext context)
      Parameters:
      context - ExtensionContext
      Returns:
      true if we have any @SystemProperty defined or false otherwise.
    • findMavenRepositoryAnnotation

      static Optional<Class<?>> findMavenRepositoryAnnotation(org.junit.jupiter.api.extension.ExtensionContext context)
    • findMavenProjectAnnotation

      static Optional<Class<?>> findMavenProjectAnnotation(org.junit.jupiter.api.extension.ExtensionContext context)
    • findMavenProjectSourcesAnnotation

      static Optional<MavenProjectSources> findMavenProjectSourcesAnnotation(org.junit.jupiter.api.extension.ExtensionContext context)
    • systemProperties

      static List<SystemProperty> systemProperties(org.junit.jupiter.api.extension.ExtensionContext context)
    • findMavenPredefinedRepositoryAnnotation

      static Optional<Class<?>> findMavenPredefinedRepositoryAnnotation(org.junit.jupiter.api.extension.ExtensionContext context)
    • findMavenProjectLocationAnnotation

      static Optional<MavenProjectLocation> findMavenProjectLocationAnnotation(org.junit.jupiter.api.extension.ExtensionContext context)