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)
          This method needs to be here in order to use proper id
 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()
          This method needs to be here in order to use proper id
protected  void setName(java.lang.String name)
           
protected  void setPlan(Plan plan)
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

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()
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
hashCode in class BambooEntityObject

equals

public boolean equals(java.lang.Object o)
Description copied from class: BambooEntityObject
This method needs to be here in order to use proper id

Overrides:
equals in class BambooEntityObject

compareTo

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.