Package com.atlassian.bamboo.testutils
Class TestBuildDetailsHelper
java.lang.Object
com.atlassian.bamboo.testutils.TestBuildDetailsHelper
See
TestPlanSpecsHelper for more recent approach to creating plans to be used in functional tests.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Collection<TestClassDescriptor> static final Collection<TestClassDescriptor> static final Collection<TestClassDescriptor> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TestBuildDetailsstatic TestBuildDetailsCreate successful git-based plan with a script task.static TestBuildDetailsBuilderstatic TestBuildDetailsBuilderstatic TestBuildDetailsBuildercreateLongSvnPlan(Class<?> testClass) static TestBuildDetailsBuilderstatic TestBuildDetailsBuildercreateRubySvnPlan(Class<?> testClass) static TestBuildDetailsBuilderCreate successful git-based plan with a maven task.static TestBuildDetailsBuilderCreate successful git-based plan with a maven task.static TestBuildDetailsCreate successful git-based plan with a script task.static TestBuildDetailsBuilderCreate successful git-based plan with a script task.static TestBuildDetailsBuildercreateSimpleSvnPlan(Class<?> testClass) static TestBuildDetailsBuildercreateSimpleSvnPlan(Class<?> testClass, String svnSubDir) static TestBuildDetailscreateSimpleSvnPlanNoTests(Class<?> testClass) static TestJobDetailsmakeUniqueJob(TestBuildDetails chain) static TestBuildDetailsstatic TestBuildDetailsmakeUniquePlanInProject(String projectName, String projectKey) static TestBuildDetailsBuilderstatic TestBuildDetailssetupGitPlan(TestBuildDetails plan, GitRepositoryDescriptor repositoryDescriptor) static TestBuildDetailssetupScriptTask(TestBuildDetails plan, String scriptBody) static TestBuildDetailssetupStashPlan(TestBuildDetails plan, String projectName, String repositoryName) static TestBuildDetailssetupStashPlan(TestBuildDetails plan, String projectName, String repositoryName, @Nullable String branch)
-
Field Details
-
SUBDIR_SVN_SUCCESS_TESTS
-
SUBDIR_SVN_FAILED_TESTS
-
SUBDIR_SVN_MIXED_TESTS
-
-
Constructor Details
-
TestBuildDetailsHelper
public TestBuildDetailsHelper()
-
-
Method Details
-
createNoRepositoryPlanWithScriptTask
-
makeUniqueJob
-
makeUniquePlan
-
makeUniquePlanInProject
-
makeUniquePlanTemplate
-
setupStashPlan
public static TestBuildDetails setupStashPlan(TestBuildDetails plan, String projectName, String repositoryName) -
setupStashPlan
public static TestBuildDetails setupStashPlan(TestBuildDetails plan, String projectName, String repositoryName, @Nullable @Nullable String branch) -
setupGitPlan
public static TestBuildDetails setupGitPlan(TestBuildDetails plan, GitRepositoryDescriptor repositoryDescriptor) -
setupScriptTask
-
createSimpleGitPlanNoTests
Create successful git-based plan with a script task. Repository used for this plan must not be committed to. -
createSimpleGitPlanNoTestsForCommits
Create successful git-based plan with a script task. Repository used for this plan can be committed to. -
createSimpleGitPlan
Create successful git-based plan with a maven task. Repository used for this plan must not be committed to. -
createSimpleGitPlanForCommits
Create successful git-based plan with a maven task. Repository used for this plan can be committed to. -
createGitScriptPlan
Create successful git-based plan with a script task. Repository used for this plan must not be committed to. -
createGitSuccessfulMavenPlan
-
createGitSuccessfulMaven3Plan
-
createGitFailedMavenPlan
-
createSimpleSvnPlanNoTests
-
createSimpleSvnPlan
- Throws:
Exception
-
createLongSvnPlan
- Throws:
Exception
-
createSimpleSvnPlan
-
createRubySvnPlan
-