Package com.atlassian.bamboo.capture
Class JUnit4WebTestDescription
- java.lang.Object
-
- com.atlassian.bamboo.capture.JUnit4WebTestDescription
-
- All Implemented Interfaces:
WebTestDescription
public class JUnit4WebTestDescription extends Object implements WebTestDescription
Description.- Since:
- v4.4
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.Function<org.junit.runner.Description,WebTestDescription>TRANSFORMER
-
Constructor Summary
Constructors Constructor Description JUnit4WebTestDescription(org.junit.runner.Description description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<Annotation>annotations()List of annotations of the test.Iterable<WebTestDescription>children()Descriptions of child tests.StringclassName()Test class name, ornullif this is neither a single test, nor a suite constructed for a test class.booleanequals(Object obj)inthashCode()booleanisSuite()Is it a test suite?booleanisTest()Is it a single test?StringmethodName()Test method name, ornullif this is not a single test.Stringname()Display name of the test.Class<?>testClass()Test class, ornullif this is neither a single test, nor a suite constructed for a test class..inttestCount()Number of single, 'atomic' tests encapsulated by the described test.StringtoString()
-
-
-
Field Detail
-
TRANSFORMER
public static com.google.common.base.Function<org.junit.runner.Description,WebTestDescription> TRANSFORMER
-
-
Method Detail
-
name
public String name()
Description copied from interface:WebTestDescriptionDisplay name of the test.- Specified by:
namein interfaceWebTestDescription- Returns:
- name of the test
-
className
public String className()
Description copied from interface:WebTestDescriptionTest class name, ornullif this is neither a single test, nor a suite constructed for a test class.- Specified by:
classNamein interfaceWebTestDescription- Returns:
- test class name
-
methodName
public String methodName()
Description copied from interface:WebTestDescriptionTest method name, ornullif this is not a single test.- Specified by:
methodNamein interfaceWebTestDescription- Returns:
- method name
-
testClass
public Class<?> testClass()
Description copied from interface:WebTestDescriptionTest class, ornullif this is neither a single test, nor a suite constructed for a test class..- Specified by:
testClassin interfaceWebTestDescription- Returns:
- test class
-
annotations
public Iterable<Annotation> annotations()
Description copied from interface:WebTestDescriptionList of annotations of the test.- Specified by:
annotationsin interfaceWebTestDescription- Returns:
- test annotations
-
isTest
public boolean isTest()
Description copied from interface:WebTestDescriptionIs it a single test?- Specified by:
isTestin interfaceWebTestDescription- Returns:
true, if this description describes a single test
-
isSuite
public boolean isSuite()
Description copied from interface:WebTestDescriptionIs it a test suite?- Specified by:
isSuitein interfaceWebTestDescription- Returns:
true, if this description describes a test suite, i.e. whenWebTestDescription.isTest()returnsfalse
-
testCount
public int testCount()
Description copied from interface:WebTestDescriptionNumber of single, 'atomic' tests encapsulated by the described test.- Specified by:
testCountin interfaceWebTestDescription- Returns:
- number of single tests within this test.
-
children
public Iterable<WebTestDescription> children()
Description copied from interface:WebTestDescriptionDescriptions of child tests.- Specified by:
childrenin interfaceWebTestDescription- Returns:
- descriptions of child tests of the described test
-
-