com.atlassian.bamboo.build
Class BuildFactoryForTests

java.lang.Object
  extended by com.atlassian.bamboo.build.BuildFactoryForTests

public class BuildFactoryForTests
extends java.lang.Object

A mother class for creating build objects for use in tests


Method Summary
static BuildObjectForTests createBuild(java.lang.String name)
          Create a build with the given name and default mock settings.
static BuildObjectForTests createBuild(java.lang.String name, Builder builder)
          Create a build with the given name and builder
static BuildObjectForTests createBuild(java.lang.String name, Builder builder, Repository repository, BuilderManager builderManager, java.lang.String buildKey)
          Create a build with the given name and builder
static BuildObjectForTests createBuild(java.lang.String name, Repository repository)
          Create a build with the given name and repository
static BuildObjectForTests createBuildWithKey(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBuild

public static BuildObjectForTests createBuild(java.lang.String name)
Create a build with the given name and default mock settings.

Parameters:
name - The name of the build
Returns:
The build

createBuildWithKey

public static BuildObjectForTests createBuildWithKey(java.lang.String key)

createBuild

public static BuildObjectForTests createBuild(java.lang.String name,
                                              Builder builder)
Create a build with the given name and builder

Parameters:
name - The name of the build
builder - The builder required to build the build
Returns:
The build

createBuild

public static BuildObjectForTests createBuild(java.lang.String name,
                                              Repository repository)
Create a build with the given name and repository

Parameters:
name - The name of the build
repository - The repository required to access the build source code
Returns:
The build

createBuild

public static BuildObjectForTests createBuild(java.lang.String name,
                                              Builder builder,
                                              Repository repository,
                                              BuilderManager builderManager,
                                              java.lang.String buildKey)
Create a build with the given name and builder

Parameters:
name - The name of the build
builder - The builder required to build the build
repository - The repository required to access the build source code
builderManager -
buildKey -
Returns:
The build


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.