Package com.atlassian.bamboo.testutils
Class TestBuildDetailsHelper
- java.lang.Object
-
- com.atlassian.bamboo.testutils.TestBuildDetailsHelper
-
public class TestBuildDetailsHelper extends Object
SeeTestPlanSpecsHelper
for more recent approach to creating plans to be used in functional tests.
-
-
Field Summary
Fields Modifier and Type Field Description static Collection<TestClassDescriptor>
SUBDIR_PERFORCE_FAILED_TESTS
static Collection<TestClassDescriptor>
SUBDIR_PERFORCE_SUCCESS_TESTS
static Collection<TestClassDescriptor>
SUBDIR_SVN_FAILED_TESTS
static Collection<TestClassDescriptor>
SUBDIR_SVN_MIXED_TESTS
static Collection<TestClassDescriptor>
SUBDIR_SVN_SUCCESS_TESTS
-
Constructor Summary
Constructors Constructor Description TestBuildDetailsHelper()
-
Method Summary
-
-
-
Field Detail
-
SUBDIR_SVN_SUCCESS_TESTS
public static final Collection<TestClassDescriptor> SUBDIR_SVN_SUCCESS_TESTS
-
SUBDIR_PERFORCE_SUCCESS_TESTS
public static final Collection<TestClassDescriptor> SUBDIR_PERFORCE_SUCCESS_TESTS
-
SUBDIR_SVN_FAILED_TESTS
public static final Collection<TestClassDescriptor> SUBDIR_SVN_FAILED_TESTS
-
SUBDIR_PERFORCE_FAILED_TESTS
public static final Collection<TestClassDescriptor> SUBDIR_PERFORCE_FAILED_TESTS
-
SUBDIR_SVN_MIXED_TESTS
public static final Collection<TestClassDescriptor> SUBDIR_SVN_MIXED_TESTS
-
-
Method Detail
-
createNoRepositoryPlanWithScriptTask
public static TestBuildDetailsBuilder createNoRepositoryPlanWithScriptTask()
-
makeUniqueJob
public static TestJobDetails makeUniqueJob(TestBuildDetails chain)
-
makeUniquePlan
public static TestBuildDetails makeUniquePlan()
-
makeUniquePlanInProject
public static TestBuildDetails makeUniquePlanInProject(String projectName, String projectKey)
-
makeUniquePlanTemplate
public static TestBuildDetailsBuilder makeUniquePlanTemplate()
-
setupPerforceSuccessPlan
public static TestBuildDetails setupPerforceSuccessPlan(TestBuildDetails build)
-
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
public static TestBuildDetails setupScriptTask(TestBuildDetails plan, String scriptBody)
-
createSimpleGitPlanNoTests
public static TestBuildDetails createSimpleGitPlanNoTests()
Create successful git-based plan with a script task. Repository used for this plan must not be committed to.
-
createSimpleGitPlanNoTestsForCommits
public static TestBuildDetailsBuilder createSimpleGitPlanNoTestsForCommits()
Create successful git-based plan with a script task. Repository used for this plan can be committed to.
-
createSimpleGitPlan
public static TestBuildDetailsBuilder createSimpleGitPlan()
Create successful git-based plan with a maven task. Repository used for this plan must not be committed to.
-
createSimpleGitPlanForCommits
public static TestBuildDetailsBuilder createSimpleGitPlanForCommits()
Create successful git-based plan with a maven task. Repository used for this plan can be committed to.
-
createGitScriptPlan
public static TestBuildDetails createGitScriptPlan()
Create successful git-based plan with a script task. Repository used for this plan must not be committed to.
-
createGitSuccessfulMavenPlan
public static TestBuildDetailsBuilder createGitSuccessfulMavenPlan()
-
createGitSuccessfulMaven3Plan
public static TestBuildDetailsBuilder createGitSuccessfulMaven3Plan()
-
createGitFailedMavenPlan
public static TestBuildDetails createGitFailedMavenPlan()
-
createSimpleSvnPlanNoTests
public static TestBuildDetails createSimpleSvnPlanNoTests(Class<?> testClass)
-
createSimpleSvnPlan
public static TestBuildDetailsBuilder createSimpleSvnPlan(Class<?> testClass) throws Exception
- Throws:
Exception
-
createLongSvnPlan
public static TestBuildDetailsBuilder createLongSvnPlan(Class<?> testClass) throws Exception
- Throws:
Exception
-
createSimpleSvnPlan
public static TestBuildDetailsBuilder createSimpleSvnPlan(Class<?> testClass, String svnSubDir)
-
createRubySvnPlan
public static TestBuildDetailsBuilder createRubySvnPlan(Class<?> testClass)
-
-