Package io.micronaut.projectgen.test
Interface BuildTestVerifier
- All Known Implementing Classes:
GradleBuildTestVerifier
,MavenBuildTestVerifier
public interface BuildTestVerifier
You can get an instance via
of(String, Options)
.-
Method Summary
Modifier and TypeMethodDescriptiondefault String
getProperty
(String propertyName) boolean
hasAnnotationProcessor
(String groupId, String artifactId) boolean
boolean
boolean
hasBuildPlugin
(String id) default boolean
hasBuildPlugin
(String groupId, String artifactId) boolean
hasDependency
(String artifactId) boolean
hasDependency
(String groupId, String artifactId) boolean
hasDependency
(String groupId, String artifactId, Scope scope) boolean
hasDependency
(String groupId, String artifactId, Scope scope, String version, boolean isProperty) boolean
hasDependency
(String groupId, String artifactId, String scope) boolean
hasDependency
(String groupId, String artifactId, String scope, String version, boolean isProperty) boolean
hasExclusion
(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId) boolean
hasExclusion
(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId, Scope scope) default boolean
hasParentPom
(String groupId, String artifactId) default boolean
hasProfile
(String profileId) boolean
hasTestAnnotationProcessor
(String groupId, String artifactId) boolean
hasTestResourceDependency
(String artifactId) boolean
hasTestResourceDependency
(String groupId, String artifactId) boolean
hasTestResourceDependencyWithGroupId
(String expectedGroupId) static @NonNull BuildTestVerifier
of
(@NonNull String template, @NonNull BuildTool buildTool, @NonNull Language language, @NonNull TestFramework testFramework) static @NonNull BuildTestVerifier
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
hasAnnotationProcessor
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether the build has the annotation processor
-
getProperty
-
hasTestAnnotationProcessor
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether the build has a test annotation processor
-
hasBom
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scope- Returns:
- Whether it has Bom
-
hasBom
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scope- Returns:
- Whether it has Bom
-
hasDependency
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scope- Returns:
- Whether it has a dependency
-
hasDependency
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scope- Returns:
- Whether it has a dependency
-
hasDependency
boolean hasDependency(String groupId, String artifactId, Scope scope, String version, boolean isProperty) - Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scopeversion
- versionisProperty
- IsProperty- Returns:
- Whether it has a dependency
-
hasDependency
boolean hasDependency(String groupId, String artifactId, String scope, String version, boolean isProperty) - Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scopeversion
- versionisProperty
- IsProperty- Returns:
- Whether it has a dependency
-
hasDependency
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether it has a dependency
-
hasExclusion
boolean hasExclusion(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId) - Parameters:
groupId
- Group IDartifactId
- artifact IDexcludedGroupId
- Excluded Group IDexcludedArtifactId
- Excluded Artifact ID- Returns:
- Whether it has exclusion
-
hasExclusion
boolean hasExclusion(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId, Scope scope) - Parameters:
groupId
- Group IDartifactId
- artifact IDexcludedGroupId
- Excluded Group IDexcludedArtifactId
- Excluded Artifact IDscope
- Scope- Returns:
- Whether it has exclusion
-
hasTestResourceDependency
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether it has Test resource dependency
-
hasTestResourceDependency
- Parameters:
artifactId
- artifact ID- Returns:
- Whether it has Test resource dependency
-
hasDependency
- Parameters:
artifactId
- artifact ID- Returns:
- Whether it has a dependency
-
hasTestResourceDependencyWithGroupId
- Parameters:
expectedGroupId
- group ID- Returns:
- Whether it has a test resource dependency
-
hasBuildPlugin
- Parameters:
id
- build plugin id- Returns:
- Whether it has a build plugin
-
of
@NonNull static @NonNull BuildTestVerifier of(@NonNull @NonNull String template, @NonNull @NonNull BuildTool buildTool, @NonNull @NonNull Language language, @NonNull @NonNull TestFramework testFramework) -
of
@Deprecated(forRemoval=true) @NonNull static @NonNull BuildTestVerifier of(@NonNull @NonNull String template, @NonNull @NonNull Options options) Deprecated, for removal: This API element is subject to removal in a future version.Useof(String, BuildTool, Language, TestFramework)
instead.- Parameters:
template
-options
-- Returns:
-
hasBuildPlugin
-
hasParentPom
-
hasProfile
-
of(String, BuildTool, Language, TestFramework)
instead.