Package com.atlassian.bamboo.capture
Class JUnit4WebTestDescription
java.lang.Object
com.atlassian.bamboo.capture.JUnit4WebTestDescription
- All Implemented Interfaces:
WebTestDescription
Description
.- Since:
- v4.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.google.common.base.Function<org.junit.runner.Description,
WebTestDescription> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList of annotations of the test.children()
Descriptions of child tests.Test class name, ornull
if this is neither a single test, nor a suite constructed for a test class.boolean
int
hashCode()
boolean
isSuite()
Is it a test suite?boolean
isTest()
Is it a single test?Test method name, ornull
if this is not a single test.name()
Display name of the test.Class<?>
Test class, ornull
if this is neither a single test, nor a suite constructed for a test class..int
Number of single, 'atomic' tests encapsulated by the described test.toString()
-
Field Details
-
TRANSFORMER
public static com.google.common.base.Function<org.junit.runner.Description,WebTestDescription> TRANSFORMER
-
-
Constructor Details
-
JUnit4WebTestDescription
public JUnit4WebTestDescription(org.junit.runner.Description description)
-
-
Method Details
-
name
Description copied from interface:WebTestDescription
Display name of the test.- Specified by:
name
in interfaceWebTestDescription
- Returns:
- name of the test
-
className
Description copied from interface:WebTestDescription
Test class name, ornull
if this is neither a single test, nor a suite constructed for a test class.- Specified by:
className
in interfaceWebTestDescription
- Returns:
- test class name
-
methodName
Description copied from interface:WebTestDescription
Test method name, ornull
if this is not a single test.- Specified by:
methodName
in interfaceWebTestDescription
- Returns:
- method name
-
testClass
Description copied from interface:WebTestDescription
Test class, ornull
if this is neither a single test, nor a suite constructed for a test class..- Specified by:
testClass
in interfaceWebTestDescription
- Returns:
- test class
-
annotations
Description copied from interface:WebTestDescription
List of annotations of the test.- Specified by:
annotations
in interfaceWebTestDescription
- Returns:
- test annotations
-
isTest
public boolean isTest()Description copied from interface:WebTestDescription
Is it a single test?- Specified by:
isTest
in interfaceWebTestDescription
- Returns:
true
, if this description describes a single test
-
isSuite
public boolean isSuite()Description copied from interface:WebTestDescription
Is it a test suite?- Specified by:
isSuite
in interfaceWebTestDescription
- Returns:
true
, if this description describes a test suite, i.e. whenWebTestDescription.isTest()
returnsfalse
-
testCount
public int testCount()Description copied from interface:WebTestDescription
Number of single, 'atomic' tests encapsulated by the described test.- Specified by:
testCount
in interfaceWebTestDescription
- Returns:
- number of single tests within this test.
-
children
Description copied from interface:WebTestDescription
Descriptions of child tests.- Specified by:
children
in interfaceWebTestDescription
- Returns:
- descriptions of child tests of the described test
-
toString
-
equals
-
hashCode
public int hashCode()
-