Package io.micronaut.projectgen.test
Class MavenBuildTestVerifier
java.lang.Object
io.micronaut.projectgen.test.MavenBuildTestVerifier
- All Implemented Interfaces:
BuildTestVerifier
BuildTestVerifier for Maven builds.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String propertyName) booleanhasAnnotationProcessor(String groupId, String artifactId) booleanbooleanbooleanhasBuildPlugin(String id) booleanhasBuildPlugin(String groupId, String artifactId) booleanhasDependency(String artifactId) booleanhasDependency(String groupId, String artifactId) booleanhasDependency(String groupId, String artifactId, MavenScope scope) 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) booleanhasParentPom(String groupId, String artifactId) booleanhasProfile(String profileId) 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
matchCoordinateGroupIdAndArtifactId
-
Field Details
-
MAVEN_DEFAULT_SCOPE
-
-
Constructor Details
-
MavenBuildTestVerifier
-
-
Method Details
-
getProperty
- Specified by:
getPropertyin interfaceBuildTestVerifier- Parameters:
propertyName- property name- Returns:
- the value associated with the property
-
hasBuildPlugin
- Specified by:
hasBuildPluginin interfaceBuildTestVerifier
-
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
- Parameters:
groupId- Group IDartifactId- Artifact IDscope- Scope- Returns:
- Whether the build has a dependency with the supplied groupId, artifactId and scope
-
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
-
hasParentPom
- Specified by:
hasParentPomin interfaceBuildTestVerifier
-
hasProfile
- Specified by:
hasProfilein interfaceBuildTestVerifier
-