Class GradleBuildTestVerifier

java.lang.Object
io.micronaut.projectgen.test.GradleBuildTestVerifier
All Implemented Interfaces:
BuildTestVerifier

public class GradleBuildTestVerifier extends Object implements BuildTestVerifier
  • Constructor Details

    • GradleBuildTestVerifier

      public GradleBuildTestVerifier(String template, Options options)
  • Method Details

    • hasAnnotationProcessor

      public boolean hasAnnotationProcessor(String groupId, String artifactId)
      Specified by:
      hasAnnotationProcessor in interface BuildTestVerifier
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      Returns:
      Whether the build has the annotation processor
    • hasTestAnnotationProcessor

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

      public boolean hasBom(String groupId, String artifactId, Scope scope)
      Specified by:
      hasBom in interface BuildTestVerifier
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      Returns:
      Whether it has Bom
    • hasBom

      public boolean hasBom(String groupId, String artifactId, String scope)
      Specified by:
      hasBom in interface BuildTestVerifier
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      Returns:
      Whether it has Bom
    • hasDependency

      public boolean hasDependency(String groupId, String artifactId, Scope scope)
      Specified by:
      hasDependency in interface BuildTestVerifier
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      Returns:
      Whether it has a dependency
    • hasDependency

      public boolean hasDependency(String groupId, String artifactId, String scope)
      Specified by:
      hasDependency in interface BuildTestVerifier
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      scope - Scope
      Returns:
      Whether it has a dependency
    • hasDependency

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

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

      public boolean hasDependency(String groupId, String artifactId)
      Specified by:
      hasDependency in interface BuildTestVerifier
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      Returns:
      Whether it has a dependency
    • hasExclusion

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

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

      public boolean hasTestResourceDependency(String groupId, String artifactId)
      Specified by:
      hasTestResourceDependency in interface BuildTestVerifier
      Parameters:
      groupId - Group ID
      artifactId - artifact ID
      Returns:
      Whether it has Test resource dependency
    • hasTestResourceDependency

      public boolean hasTestResourceDependency(String artifactId)
      Specified by:
      hasTestResourceDependency in interface BuildTestVerifier
      Parameters:
      artifactId - artifact ID
      Returns:
      Whether it has Test resource dependency
    • hasDependency

      public boolean hasDependency(String artifactId)
      Specified by:
      hasDependency in interface BuildTestVerifier
      Parameters:
      artifactId - artifact ID
      Returns:
      Whether it has a dependency
    • hasTestResourceDependencyWithGroupId

      public boolean hasTestResourceDependencyWithGroupId(String expectedGroupId)
      Specified by:
      hasTestResourceDependencyWithGroupId in interface BuildTestVerifier
      Parameters:
      expectedGroupId - group ID
      Returns:
      Whether it has a test resource dependency
    • hasBuildPlugin

      public boolean hasBuildPlugin(String id)
      Specified by:
      hasBuildPlugin in interface BuildTestVerifier
      Parameters:
      id - build plugin id
      Returns:
      Whether it has a build plugin