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
-
getProperty
-
hasTestAnnotationProcessor
-
hasBom
-
hasBom
-
hasDependency
-
hasDependency
-
hasDependency
-
hasDependency
-
hasDependency
-
hasExclusion
-
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
-
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.