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 StringgetProperty(String propertyName) booleanhasAnnotationProcessor(String groupId, String artifactId) booleanbooleanbooleanhasBuildPlugin(String id) default booleanhasBuildPlugin(String groupId, String artifactId) 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) default booleanhasParentPom(String groupId, String artifactId) default booleanhasProfile(String profileId) booleanhasTestAnnotationProcessor(String groupId, String artifactId) booleanhasTestResourceDependency(String artifactId) booleanhasTestResourceDependency(String groupId, String artifactId) booleanhasTestResourceDependencyWithGroupId(String expectedGroupId) default booleanmatchCoordinateGroupIdAndArtifactId(Coordinate d, String groupId, String artifactId) static @NonNull BuildTestVerifierof(@NonNull String template, @NonNull BuildTool buildTool, @NonNull Language language, @NonNull TestFramework testFramework) static @NonNull BuildTestVerifierDeprecated, 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
- Parameters:
propertyName- property name- Returns:
- the value associated with the property
-
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- build fileoptions- options- Returns:
- BuildTestVerifier instance
-
hasBuildPlugin
-
hasParentPom
-
hasProfile
-
matchCoordinateGroupIdAndArtifactId
default boolean matchCoordinateGroupIdAndArtifactId(Coordinate d, String groupId, String artifactId)
-
of(String, BuildTool, Language, TestFramework)instead.