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
Modifier and TypeFieldDescriptionstatic final Collection<TestClassDescriptor>
static final Collection<TestClassDescriptor>
static final Collection<TestClassDescriptor>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TestBuildDetails
static TestBuildDetails
Create successful git-based plan with a script task.static TestBuildDetailsBuilder
static TestBuildDetailsBuilder
static TestBuildDetailsBuilder
createLongSvnPlan
(Class<?> testClass) static TestBuildDetailsBuilder
static TestBuildDetailsBuilder
createRubySvnPlan
(Class<?> testClass) static TestBuildDetailsBuilder
Create successful git-based plan with a maven task.static TestBuildDetailsBuilder
Create successful git-based plan with a maven task.static TestBuildDetails
Create successful git-based plan with a script task.static TestBuildDetailsBuilder
Create successful git-based plan with a script task.static TestBuildDetailsBuilder
createSimpleSvnPlan
(Class<?> testClass) static TestBuildDetailsBuilder
createSimpleSvnPlan
(Class<?> testClass, String svnSubDir) static TestBuildDetails
createSimpleSvnPlanNoTests
(Class<?> testClass) static TestJobDetails
makeUniqueJob
(TestBuildDetails chain) static TestBuildDetails
static TestBuildDetails
makeUniquePlanInProject
(String projectName, String projectKey) static TestBuildDetailsBuilder
static TestBuildDetails
setupGitPlan
(TestBuildDetails plan, GitRepositoryDescriptor repositoryDescriptor) static TestBuildDetails
setupScriptTask
(TestBuildDetails plan, String scriptBody) static TestBuildDetails
setupStashPlan
(TestBuildDetails plan, String projectName, String repositoryName) static TestBuildDetails
setupStashPlan
(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
-