Class RssTestHelper


  • public class RssTestHelper
    extends Object
    • 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
    • Constructor Detail

      • RssTestHelper

        public RssTestHelper()
    • Method Detail

      • 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