Class RssTestHelper

java.lang.Object
com.atlassian.bamboo.testutils.rss.RssTestHelper

public class RssTestHelper extends Object
  • Field Details

    • RSS_CONTEXT_PLACEHOLDER_CURRENT_BRANCH

      public static final String RSS_CONTEXT_PLACEHOLDER_CURRENT_BRANCH
      See Also:
    • RSS_CONTEXT_PLACEHOLDER_IS_DEFAULT_BRANCH

      public static final String RSS_CONTEXT_PLACEHOLDER_IS_DEFAULT_BRANCH
      See Also:
  • Constructor Details

    • RssTestHelper

      public RssTestHelper()
  • Method Details

    • prepareSpecsDir

      public static Path prepareSpecsDir(Class<?> testClass, Path repositoryDirectory, String pomFileName) throws IOException
      Throws:
      IOException
    • rssCommitGenerator

      public static Consumer<Path> rssCommitGenerator(Class<?> testClass, com.atlassian.bamboo.specs.api.builders.plan.Plan plan, com.atlassian.bamboo.specs.api.builders.deployment.Deployment deployment, boolean breakIt)
    • rssCommitGenerator

      public static Consumer<Path> rssCommitGenerator(Class<?> testClass, boolean breakIt, com.atlassian.bamboo.specs.api.builders.plan.Plan... plans)
    • rssCommitGenerator

      public static Consumer<Path> rssCommitGenerator(Class<?> testClass, boolean breakIt, com.atlassian.bamboo.specs.api.builders.project.Project... projects)
    • testSuccessEmail

      public static void testSuccessEmail(@NotNull @NotNull com.icegreen.greenmail.base.GreenMailOperations greenMail, @NotNull @NotNull String sharedRepositoryName, @NotNull @NotNull String planName, @Nullable @Nullable String deploymentName) throws Exception
      Test email sent after successful application of either RSP or YAML.
      Throws:
      Exception
    • testFailureEmail

      public static void testFailureEmail(com.icegreen.greenmail.base.GreenMailOperations greenMail, String sharedRepositoryName, @Nullable @Nullable com.atlassian.bamboo.specs.api.builders.plan.Plan plan, @Nullable @Nullable String deploymentName) throws Exception
      Throws:
      Exception
    • testNoAccessEmail

      public static void testNoAccessEmail(com.icegreen.greenmail.base.GreenMailOperations greenMail, String linkedRepositoryName, TestBuildDetails planDetails, boolean isNoAccessMsgPresent) throws Exception
      Throws:
      Exception