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 boolean
hasGoals
(org.junit.jupiter.api.extension.ExtensionContext context) (package private) static boolean
hasOptions
(org.junit.jupiter.api.extension.ExtensionContext context) (package private) static boolean
hasProfiles
(org.junit.jupiter.api.extension.ExtensionContext context) (package private) static boolean
hasSystemProperties
(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:
true
if we have any@MavenProfile
defined orfalse
otherwise.
-
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:
true
if we have any@MavenGoal
defined orfalse
otherwise.
-
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:
true
if we have any@MavenOption
defined orfalse
otherwise.
-
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:
true
if we have any@SystemProperty
defined orfalse
otherwise.
-
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)
-