Package io.micronaut.projectgen.test
Class GradleBuildTestVerifier
java.lang.Object
io.micronaut.projectgen.test.GradleBuildTestVerifier
- All Implemented Interfaces:
BuildTestVerifier
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
GradleBuildTestVerifier
-
-
Method Details
-
hasAnnotationProcessor
- Specified by:
hasAnnotationProcessor
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether the build has the annotation processor
-
hasTestAnnotationProcessor
- Specified by:
hasTestAnnotationProcessor
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether the build has a test annotation processor
-
hasBom
- Specified by:
hasBom
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scope- Returns:
- Whether it has Bom
-
hasBom
- Specified by:
hasBom
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scope- Returns:
- Whether it has Bom
-
hasDependency
- Specified by:
hasDependency
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scope- Returns:
- Whether it has a dependency
-
hasDependency
- Specified by:
hasDependency
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scope- Returns:
- Whether it has a dependency
-
hasDependency
public boolean hasDependency(String groupId, String artifactId, Scope scope, String version, boolean isProperty) - Specified by:
hasDependency
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scopeversion
- versionisProperty
- IsProperty- Returns:
- Whether it has a dependency
-
hasDependency
public boolean hasDependency(String groupId, String artifactId, String scope, String version, boolean isProperty) - Specified by:
hasDependency
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact IDscope
- Scopeversion
- versionisProperty
- IsProperty- Returns:
- Whether it has a dependency
-
hasDependency
- Specified by:
hasDependency
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether it has a dependency
-
hasExclusion
public boolean hasExclusion(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId) - Specified by:
hasExclusion
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact IDexcludedGroupId
- Excluded Group IDexcludedArtifactId
- Excluded Artifact ID- Returns:
- Whether it has exclusion
-
hasExclusion
public boolean hasExclusion(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId, Scope scope) - Specified by:
hasExclusion
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact IDexcludedGroupId
- Excluded Group IDexcludedArtifactId
- Excluded Artifact IDscope
- Scope- Returns:
- Whether it has exclusion
-
hasTestResourceDependency
- Specified by:
hasTestResourceDependency
in interfaceBuildTestVerifier
- Parameters:
groupId
- Group IDartifactId
- artifact ID- Returns:
- Whether it has Test resource dependency
-
hasTestResourceDependency
- Specified by:
hasTestResourceDependency
in interfaceBuildTestVerifier
- Parameters:
artifactId
- artifact ID- Returns:
- Whether it has Test resource dependency
-
hasDependency
- Specified by:
hasDependency
in interfaceBuildTestVerifier
- Parameters:
artifactId
- artifact ID- Returns:
- Whether it has a dependency
-
hasTestResourceDependencyWithGroupId
- Specified by:
hasTestResourceDependencyWithGroupId
in interfaceBuildTestVerifier
- Parameters:
expectedGroupId
- group ID- Returns:
- Whether it has a test resource dependency
-
hasBuildPlugin
- Specified by:
hasBuildPlugin
in interfaceBuildTestVerifier
- Parameters:
id
- build plugin id- Returns:
- Whether it has a build plugin
-