com.atlassian.bamboo.build
Class TestBuildObjectForTests

java.lang.Object
  extended by com.atlassian.bamboo.build.BuildObjectForTests
      extended by com.atlassian.bamboo.build.TestBuildObjectForTests
All Implemented Interfaces:
Build, Buildable, BuildDefinition, BuildDefinitionForBuild, BuildDefinitionXml, BambooObject, Deletable, Describable, Plan, TopLevelPlan, Project, DescriptionProvider, NameProvider, BuildPlanDefinition, java.io.Serializable

public class TestBuildObjectForTests
extends BuildObjectForTests

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.bamboo.build.BuildObjectForTests
myBuildResultSummaries
 
Fields inherited from interface com.atlassian.bamboo.plan.Plan
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
 
Constructor Summary
TestBuildObjectForTests()
           
TestBuildObjectForTests(Repository repository, java.lang.String name)
           
TestBuildObjectForTests(Repository repository, java.lang.String name, java.lang.String emailAddress)
           
 
Method Summary
 void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
          Add the given build results summary to the build.
 java.util.List getBuildResultSummaries()
          Obtains the builds total collection of BuildResultsSummary objects (most recent first), one for each build.
 BuildResultsSummary getFirstBuildSummary()
          Get the first build result
 BuildResultsSummary getLatestBuildSummary()
          Get the summary from the latest build
 long getNumberOfBuildSummaries()
           
 void removeBuildResultSummary(long buildNumber)
           
 
Methods inherited from class com.atlassian.bamboo.build.BuildObjectForTests
addBuildLogEntry, addBuildLogEntry, clearBuildLog, equals, getArtifactDefinitions, getAverageBuildDuration, getBuildChangedEmailList, getBuildChangedEmails, getBuildDefinition, getBuildDefinitionXml, getBuilder, getBuilderManager, getBuilderV2, getBuildKey, getBuildLog, getBuildLogger, getBuildName, getBuildResultsSummaryManager, getBuildStrategy, getConfigObjects, getCurrentBuildStrategy, getCurrentStatus, getCustomConfiguration, getDefaultBuildDefinition, getDescription, getFieldValueItems, getFirstBuildNumber, getId, getKey, getLabellings, getLastBuildNumber, getLastBuildStartTime, getLastVcsRevisionKey, getLatestResultsSummary, getName, getNextBuildNumber, getNextBuildResults, getNotificationSet, getNumberOfConcurrentlyRunningBuilds, getPlan, getPlanKey, getPlans, getPollingPeriod, getPreviousBuildResults, getProject, getRelatedLabellings, getRepository, getRepositoryV2, getRequirementSet, getSourceCodeDirectory, getTaskDefinitions, getTestClasses, getTopLevelPlans, getType, getWebRepositoryViewer, getXmlData, getXmppMessageSender, hasBuildResults, hashCode, hasTests, isActive, isBusy, isExecuting, isInBuildQueue, isInheritRepository, isMarkedForDeletion, isMarkedForEditBuild, isMarkedForManualBuild, isSuspendedFromBuilding, markAsNeedingBuilding, markForDeletion, removeBuildResultSummary, save, setBuildChangedEmails, setBuildDefinition, setBuildDefinitionXml, setBuilder, setBuilderManager, setBuildKey, setBuildName, setBuildResultsSummaryManager, setBuildResultSummaries, setBuildStrategy, setConfigObjects, setCustomConfiguration, setDescription, setFieldValueItems, setFirstBuildNumber, setId, setInBuildQueue, setInheritRepository, setKey, setLabellings, setLastBuildNumber, setLastBuildStartTime, setLastVcsRevisionKey, setMarkedForDeletion, setName, setNextBuildNumber, setNotificationSet, setPlan, setPollingPeriod, setProject, setRepository, setRequirementSet, setSuspendedFromBuilding, setTaskDefinitions, setWebRepositoryViewer, setWorkingDirectory, setXmlData, setXmppMessageSender, unmarkBuild, unMarkForDeletion, validateBuild
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestBuildObjectForTests

public TestBuildObjectForTests()

TestBuildObjectForTests

public TestBuildObjectForTests(Repository repository,
                               java.lang.String name)

TestBuildObjectForTests

public TestBuildObjectForTests(Repository repository,
                               java.lang.String name,
                               java.lang.String emailAddress)
Method Detail

removeBuildResultSummary

public void removeBuildResultSummary(long buildNumber)

addBuildResultSummary

public void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Description copied from class: BuildObjectForTests
Add the given build results summary to the build.

Specified by:
addBuildResultSummary in interface Buildable
Overrides:
addBuildResultSummary in class BuildObjectForTests
Parameters:
buildResultsSummary - The build summary

getBuildResultSummaries

public java.util.List getBuildResultSummaries()
Description copied from class: BuildObjectForTests
Obtains the builds total collection of BuildResultsSummary objects (most recent first), one for each build. EW 01/11/2006 - Moved to a hibernated source for build result summaries.

Specified by:
getBuildResultSummaries in interface Buildable
Overrides:
getBuildResultSummaries in class BuildObjectForTests
Returns:
The collection of build summary objects

getNumberOfBuildSummaries

public long getNumberOfBuildSummaries()
Overrides:
getNumberOfBuildSummaries in class BuildObjectForTests

getLatestBuildSummary

public BuildResultsSummary getLatestBuildSummary()
Description copied from class: BuildObjectForTests
Get the summary from the latest build

Specified by:
getLatestBuildSummary in interface Buildable
Overrides:
getLatestBuildSummary in class BuildObjectForTests
Returns:
The summary info for the last completed build. Returns null if there are no build results for this build

getFirstBuildSummary

public BuildResultsSummary getFirstBuildSummary()
Description copied from interface: Buildable
Get the first build result

Specified by:
getFirstBuildSummary in interface Buildable
Overrides:
getFirstBuildSummary in class BuildObjectForTests
Returns:
result


Copyright © 2011 Atlassian. All Rights Reserved.