Package io.micronaut.projectgen.test
Interface BuildTestVerifier
- All Known Implementing Classes:
GradleBuildTestVerifier
public interface BuildTestVerifier
You can get an instance via
of(String, Options)
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasAnnotationProcessor
(String groupId, String artifactId) boolean
boolean
boolean
hasBuildPlugin
(String id) 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) boolean
hasTestAnnotationProcessor
(String groupId, String artifactId) boolean
hasTestResourceDependency
(String artifactId) boolean
hasTestResourceDependency
(String groupId, String artifactId) boolean
hasTestResourceDependencyWithGroupId
(String expectedGroupId) static @NonNull BuildTestVerifier
-
Method Details
-
hasAnnotationProcessor
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether the build has the annotation processor
-
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 Options options)
-