Package com.soebes.itf.jupiter.extension
Class AnnotationHelper
java.lang.Object
com.soebes.itf.jupiter.extension.AnnotationHelper
- Author:
- Karl Heinz Marbaise
-
Method Summary
Modifier and TypeMethodDescriptionfindMavenPredefinedRepositoryAnnotation(org.junit.jupiter.api.extension.ExtensionContext context) findMavenProjectAnnotation(org.junit.jupiter.api.extension.ExtensionContext context) (package private) static Optional<MavenProjectLocation>findMavenProjectLocationAnnotation(org.junit.jupiter.api.extension.ExtensionContext context) (package private) static Optional<MavenProjectSources>findMavenProjectSourcesAnnotation(org.junit.jupiter.api.extension.ExtensionContext context) findMavenRepositoryAnnotation(org.junit.jupiter.api.extension.ExtensionContext context) goals(org.junit.jupiter.api.extension.ExtensionContext context) Get the goals from the annotation either on test method level or on test class level.(package private) static booleanhasGoals(org.junit.jupiter.api.extension.ExtensionContext context) (package private) static booleanhasOptions(org.junit.jupiter.api.extension.ExtensionContext context) (package private) static booleanhasProfiles(org.junit.jupiter.api.extension.ExtensionContext context) (package private) static booleanhasSystemProperties(org.junit.jupiter.api.extension.ExtensionContext context) options(org.junit.jupiter.api.extension.ExtensionContext context) Get the options from the class level, method level or nested class level.profiles(org.junit.jupiter.api.extension.ExtensionContext context) Get the profiles from the annotation.(package private) static List<SystemProperty>systemProperties(org.junit.jupiter.api.extension.ExtensionContext context)
-
Method Details
-
hasProfiles
static boolean hasProfiles(org.junit.jupiter.api.extension.ExtensionContext context) - Parameters:
context-ExtensionContext- Returns:
trueif we have any@MavenProfiledefined orfalseotherwise.
-
profiles
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:
trueif we have any@MavenGoaldefined orfalseotherwise.
-
goals
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:
trueif we have any@MavenOptiondefined orfalseotherwise.
-
options
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:
trueif we have any@SystemPropertydefined orfalseotherwise.
-
findMavenRepositoryAnnotation
-
findMavenProjectAnnotation
-
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
-
findMavenProjectLocationAnnotation
static Optional<MavenProjectLocation> findMavenProjectLocationAnnotation(org.junit.jupiter.api.extension.ExtensionContext context)
-