Package io.micronaut.projectgen.test
Class GradleBuildTestVerifier
java.lang.Object
io.micronaut.projectgen.test.GradleBuildTestVerifier
- All Implemented Interfaces:
BuildTestVerifier
BuildTestVerifier for Gradle builds.-
Constructor Summary
ConstructorsConstructorDescriptionGradleBuildTestVerifier(String template, BuildTool buildTool, Language language, TestFramework testFramework) -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasAnnotationProcessor(String groupId, String artifactId) booleanbooleanbooleanhasBuildPlugin(String id) booleanhasDependency(String artifactId) booleanhasDependency(String groupId, String artifactId) booleanhasDependency(String groupId, String artifactId, Scope scope) booleanhasDependency(String groupId, String artifactId, Scope scope, String version, boolean isProperty) booleanhasDependency(String groupId, String artifactId, String scope) booleanhasDependency(String groupId, String artifactId, String scope, String version, boolean isProperty) booleanhasExclusion(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId) booleanhasExclusion(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId, Scope scope) booleanhasTestAnnotationProcessor(String groupId, String artifactId) booleanhasTestResourceDependency(String artifactId) booleanhasTestResourceDependency(String groupId, String artifactId) booleanhasTestResourceDependencyWithGroupId(String expectedGroupId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.projectgen.test.BuildTestVerifier
getProperty, hasBuildPlugin, hasParentPom, hasProfile, matchCoordinateGroupIdAndArtifactId
-
Constructor Details
-
GradleBuildTestVerifier
public GradleBuildTestVerifier(String template, BuildTool buildTool, Language language, TestFramework testFramework)
-
-
Method Details
-
hasAnnotationProcessor
- Specified by:
hasAnnotationProcessorin interfaceBuildTestVerifier- Parameters:
groupId- Group IDartifactId- artifact ID- Returns:
- Whether the build has the annotation processor
-
hasTestAnnotationProcessor
- Specified by:
hasTestAnnotationProcessorin interfaceBuildTestVerifier- Parameters:
groupId- Group IDartifactId- artifact ID- Returns:
- Whether the build has a test annotation processor
-
hasBom
- Specified by:
hasBomin interfaceBuildTestVerifier- Parameters:
groupId- Group IDartifactId- artifact IDscope- Scope- Returns:
- Whether it has Bom
-
hasBom
- Specified by:
hasBomin interfaceBuildTestVerifier- Parameters:
groupId- Group IDartifactId- artifact IDscope- Scope- Returns:
- Whether it has Bom
-
hasDependency
- Specified by:
hasDependencyin interfaceBuildTestVerifier- Parameters:
groupId- Group IDartifactId- artifact IDscope- Scope- Returns:
- Whether it has a dependency
-
hasDependency
- Specified by:
hasDependencyin 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:
hasDependencyin 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:
hasDependencyin interfaceBuildTestVerifier- Parameters:
groupId- Group IDartifactId- artifact IDscope- Scopeversion- versionisProperty- IsProperty- Returns:
- Whether it has a dependency
-
hasDependency
- Specified by:
hasDependencyin 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:
hasExclusionin 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:
hasExclusionin interfaceBuildTestVerifier- Parameters:
groupId- Group IDartifactId- artifact IDexcludedGroupId- Excluded Group IDexcludedArtifactId- Excluded Artifact IDscope- Scope- Returns:
- Whether it has exclusion
-
hasTestResourceDependency
- Specified by:
hasTestResourceDependencyin interfaceBuildTestVerifier- Parameters:
groupId- Group IDartifactId- artifact ID- Returns:
- Whether it has Test resource dependency
-
hasTestResourceDependency
- Specified by:
hasTestResourceDependencyin interfaceBuildTestVerifier- Parameters:
artifactId- artifact ID- Returns:
- Whether it has Test resource dependency
-
hasDependency
- Specified by:
hasDependencyin interfaceBuildTestVerifier- Parameters:
artifactId- artifact ID- Returns:
- Whether it has a dependency
-
hasTestResourceDependencyWithGroupId
- Specified by:
hasTestResourceDependencyWithGroupIdin interfaceBuildTestVerifier- Parameters:
expectedGroupId- group ID- Returns:
- Whether it has a test resource dependency
-
hasBuildPlugin
- Specified by:
hasBuildPluginin interfaceBuildTestVerifier- Parameters:
id- build plugin id- Returns:
- Whether it has a build plugin
-