public class JUnit4WebTestDescription extends Object implements WebTestDescription
WebTestDescription
based on the JUnit4
Description
.Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Function<org.junit.runner.Description,WebTestDescription> |
TRANSFORMER |
Constructor and Description |
---|
JUnit4WebTestDescription(org.junit.runner.Description description) |
Modifier and Type | Method and Description |
---|---|
Iterable<Annotation> |
annotations()
List of annotations of the test.
|
Set<Category> |
categories()
Set of categories describing this test.
|
Iterable<WebTestDescription> |
children()
Descriptions of child tests.
|
String |
className()
Test class name, or
null if this is neither a single test, nor a suite constructed for a test class. |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isSuite()
Is it a test suite?
|
boolean |
isTest()
Is it a single test?
|
String |
methodName()
Test method name, or
null if this is not a single test. |
String |
name()
Display name of the test.
|
Class<?> |
testClass()
Test class, or
null if this is neither a single test, nor a suite constructed for a test class.. |
int |
testCount()
Number of single, 'atomic' tests encapsulated by the described test.
|
String |
toString() |
public static com.google.common.base.Function<org.junit.runner.Description,WebTestDescription> TRANSFORMER
public JUnit4WebTestDescription(org.junit.runner.Description description)
public String name()
WebTestDescription
name
in interface WebTestDescription
public String className()
WebTestDescription
null
if this is neither a single test, nor a suite constructed for a test class.className
in interface WebTestDescription
public String methodName()
WebTestDescription
null
if this is not a single test.methodName
in interface WebTestDescription
public Class<?> testClass()
WebTestDescription
null
if this is neither a single test, nor a suite constructed for a test class..testClass
in interface WebTestDescription
public Iterable<Annotation> annotations()
WebTestDescription
annotations
in interface WebTestDescription
public Set<Category> categories()
WebTestDescription
categories
in interface WebTestDescription
public boolean isTest()
WebTestDescription
isTest
in interface WebTestDescription
true
, if this description describes a single testpublic boolean isSuite()
WebTestDescription
isSuite
in interface WebTestDescription
true
, if this description describes a test suite, i.e. when WebTestDescription.isTest()
returns false
public int testCount()
WebTestDescription
testCount
in interface WebTestDescription
public Iterable<WebTestDescription> children()
WebTestDescription
children
in interface WebTestDescription
Copyright © 2002-2016 Atlassian. All Rights Reserved.