Interface BuildTestVerifier

All Known Implementing Classes:
GradleBuildTestVerifier

public interface BuildTestVerifier
You can get an instance via of(String, Options).
  • Method Details

    • hasAnnotationProcessor

      boolean hasAnnotationProcessor(String groupId, String artifactId)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      Returns:
      Whether the build has the annotation processor
    • hasTestAnnotationProcessor

      boolean hasTestAnnotationProcessor(String groupId, String artifactId)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      Returns:
      Whether the build has a test annotation processor
    • hasBom

      boolean hasBom(String groupId, String artifactId, Scope scope)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      Returns:
      Whether it has Bom
    • hasBom

      boolean hasBom(String groupId, String artifactId, String scope)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      Returns:
      Whether it has Bom
    • hasDependency

      boolean hasDependency(String groupId, String artifactId, Scope scope)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      Returns:
      Whether it has a dependency
    • hasDependency

      boolean hasDependency(String groupId, String artifactId, String scope)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      Returns:
      Whether it has a dependency
    • hasDependency

      boolean hasDependency(String groupId, String artifactId, Scope scope, String version, boolean isProperty)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      version - version
      isProperty - IsProperty
      Returns:
      Whether it has a dependency
    • hasDependency

      boolean hasDependency(String groupId, String artifactId, String scope, String version, boolean isProperty)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      version - version
      isProperty - IsProperty
      Returns:
      Whether it has a dependency
    • hasDependency

      boolean hasDependency(String groupId, String artifactId)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      Returns:
      Whether it has a dependency
    • hasExclusion

      boolean hasExclusion(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      excludedGroupId - Excluded Group ID
      excludedArtifactId - Excluded Artifact ID
      Returns:
      Whether it has exclusion
    • hasExclusion

      boolean hasExclusion(String groupId, String artifactId, String excludedGroupId, String excludedArtifactId, Scope scope)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      excludedGroupId - Excluded Group ID
      excludedArtifactId - Excluded Artifact ID
      scope - Scope
      Returns:
      Whether it has exclusion
    • hasTestResourceDependency

      boolean hasTestResourceDependency(String groupId, String artifactId)
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      Returns:
      Whether it has Test resource dependency
    • hasTestResourceDependency

      boolean hasTestResourceDependency(String artifactId)
      Parameters:
      artifactId - artifact ID
      Returns:
      Whether it has Test resource dependency
    • hasDependency

      boolean hasDependency(String artifactId)
      Parameters:
      artifactId - artifact ID
      Returns:
      Whether it has a dependency
    • hasTestResourceDependencyWithGroupId

      boolean hasTestResourceDependencyWithGroupId(String expectedGroupId)
      Parameters:
      expectedGroupId - group ID
      Returns:
      Whether it has a test resource dependency
    • hasBuildPlugin

      boolean hasBuildPlugin(String id)
      Parameters:
      id - build plugin id
      Returns:
      Whether it has a build plugin
    • of

      @NonNull static @NonNull BuildTestVerifier of(@NonNull @NonNull String template, @NonNull @NonNull Options options)