com.atlassian.bamboo.resultsummary.tests
Class TestClassImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.resultsummary.tests.TestClassImpl
All Implemented Interfaces:
BambooIdProvider, BambooObject, TestClass, java.lang.Cloneable, java.lang.Comparable<TestClass>

public class TestClassImpl
extends BambooEntityObject
implements TestClass


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
TestClassImpl()
           
TestClassImpl(java.lang.String name, Plan plan)
           
 
Method Summary
 void addTest(TestCase testCase)
          Add a testCase to this group
 int compareTo(TestClass testClass)
           
 TestClass copyTestClass(Plan plan)
          Creates a copy of the TestClass.
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
          The real name of the test class
 Plan getPlan()
          Get the plan that this test class belongs to
 java.lang.String getShortName()
          Get the short name for this class for the UI
 java.util.List<TestCase> getTestCases()
          Retrieve the TestCases that are part of this class.
 int hashCode()
           
protected  void setName(java.lang.String name)
           
protected  void setPlan(Plan plan)
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
getId, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestClassImpl

public TestClassImpl()

TestClassImpl

public TestClassImpl(java.lang.String name,
                     Plan plan)
Method Detail

getShortName

public java.lang.String getShortName()
Description copied from interface: TestClass
Get the short name for this class for the UI

Specified by:
getShortName in interface TestClass
Returns:
the name of this class without preceding packages.

addTest

public void addTest(@NotNull
                    TestCase testCase)
Description copied from interface: TestClass
Add a testCase to this group

Specified by:
addTest in interface TestClass
Parameters:
testCase - to add.

getName

public java.lang.String getName()
Description copied from interface: TestClass
The real name of the test class

Specified by:
getName in interface TestClass
Returns:
real name of the test class

setName

protected void setName(java.lang.String name)

getTestCases

@NotNull
public java.util.List<TestCase> getTestCases()
Description copied from interface: TestClass
Retrieve the TestCases that are part of this class.

Specified by:
getTestCases in interface TestClass
Returns:
the TestCases that are part of this class.

getPlan

public Plan getPlan()
Description copied from interface: TestClass
Get the plan that this test class belongs to

Specified by:
getPlan in interface TestClass
Returns:
the plan that this test class belongs to

setPlan

protected void setPlan(Plan plan)

copyTestClass

@NotNull
public TestClass copyTestClass(@NotNull
                                       Plan plan)
Description copied from interface: TestClass
Creates a copy of the TestClass. Includes all child TestCases but not the Plan

Specified by:
copyTestClass in interface TestClass
Returns:
testClass

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.core.bean.EntityObject

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.atlassian.core.bean.EntityObject

compareTo

public int compareTo(TestClass testClass)
Specified by:
compareTo in interface java.lang.Comparable<TestClass>


Copyright © 2012 Atlassian. All Rights Reserved.