Class RssTestHelper
- java.lang.Object
-
- com.atlassian.bamboo.testutils.rss.RssTestHelper
-
public class RssTestHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
RSS_CONTEXT_PLACEHOLDER_CURRENT_BRANCH
static String
RSS_CONTEXT_PLACEHOLDER_IS_DEFAULT_BRANCH
-
Constructor Summary
Constructors Constructor Description RssTestHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Path
prepareSpecsDir(Class<?> testClass, Path repositoryDirectory, String pomFileName)
static Consumer<Path>
rssCommitGenerator(Class<?> testClass, boolean breakIt, com.atlassian.bamboo.specs.api.builders.plan.Plan... plans)
static Consumer<Path>
rssCommitGenerator(Class<?> testClass, boolean breakIt, com.atlassian.bamboo.specs.api.builders.project.Project... projects)
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)
static void
testFailureEmail(com.icegreen.greenmail.base.GreenMailOperations greenMail, String sharedRepositoryName, @Nullable com.atlassian.bamboo.specs.api.builders.plan.Plan plan, @Nullable String deploymentName)
static void
testNoAccessEmail(com.icegreen.greenmail.base.GreenMailOperations greenMail, String linkedRepositoryName, TestBuildDetails planDetails, boolean isNoAccessMsgPresent)
static void
testSuccessEmail(@NotNull com.icegreen.greenmail.base.GreenMailOperations greenMail, @NotNull String sharedRepositoryName, @NotNull String planName, @Nullable String deploymentName)
Test email sent after successful application of either RSP or YAML.
-
-
-
Field Detail
-
RSS_CONTEXT_PLACEHOLDER_CURRENT_BRANCH
public static final String RSS_CONTEXT_PLACEHOLDER_CURRENT_BRANCH
- See Also:
- Constant Field Values
-
RSS_CONTEXT_PLACEHOLDER_IS_DEFAULT_BRANCH
public static final String RSS_CONTEXT_PLACEHOLDER_IS_DEFAULT_BRANCH
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-