public class

JUnit4WebTestDescription

extends Object
implements WebTestDescription
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.suite.JUnit4WebTestDescription

Class Overview

WebTestDescription based on the JUnit4 org.junit.runner.Description.

Summary

Fields
public static Function<Description, WebTestDescription> TRANSFORMER
Public Constructors
JUnit4WebTestDescription(Description description)
Public Methods
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()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.WebTestDescription

Fields

public static Function<Description, WebTestDescription> TRANSFORMER

Public Constructors

public JUnit4WebTestDescription (Description description)

Public Methods

public Iterable<Annotation> annotations ()

List of annotations of the test.

Returns
  • test annotations

public Set<Category> categories ()

Set of categories describing this test.

Returns
  • categories of this test

public Iterable<WebTestDescription> children ()

Descriptions of child tests.

Returns
  • descriptions of child tests of the described test

public String className ()

Test class name, or null if this is neither a single test, nor a suite constructed for a test class.

Returns
  • test class name

public boolean equals (Object obj)

public int hashCode ()

public boolean isSuite ()

Is it a test suite?

Returns
  • true, if this description describes a test suite, i.e. when isTest() returns false

public boolean isTest ()

Is it a single test?

Returns
  • true, if this description describes a single test

public String methodName ()

Test method name, or null if this is not a single test.

Returns
  • method name

public String name ()

Display name of the test.

Returns
  • name of the test

public Class<?> testClass ()

Test class, or null if this is neither a single test, nor a suite constructed for a test class..

Returns
  • test class

public int testCount ()

Number of single, 'atomic' tests encapsulated by the described test.

Returns
  • number of single tests within this test.

public String toString ()