com.atlassian.jira.functest.framework
Class JUnit3WebTestDescription

java.lang.Object
  extended by com.atlassian.jira.functest.framework.JUnit3WebTestDescription
All Implemented Interfaces:
WebTestDescription

public class JUnit3WebTestDescription
extends Object
implements WebTestDescription

WebTestDescription based on the JUnit4 Description.

Since:
v4.4

Field Summary
static com.google.common.base.Function<junit.framework.Test,WebTestDescription> TRANSFORMER
           
 
Constructor Summary
JUnit3WebTestDescription(junit.framework.Test test)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSFORMER

public static com.google.common.base.Function<junit.framework.Test,WebTestDescription> TRANSFORMER
Constructor Detail

JUnit3WebTestDescription

public JUnit3WebTestDescription(junit.framework.Test test)
Method Detail

name

public String name()
Description copied from interface: WebTestDescription
Display name of the test.

Specified by:
name in interface WebTestDescription
Returns:
name of the test

className

public String className()
Description copied from interface: WebTestDescription
Test class name, or null if this is neither a single test, nor a suite constructed for a test class.

Specified by:
className in interface WebTestDescription
Returns:
test class name

methodName

public String methodName()
Description copied from interface: WebTestDescription
Test method name, or null if this is not a single test.

Specified by:
methodName in interface WebTestDescription
Returns:
method name

testClass

public Class<?> testClass()
Description copied from interface: WebTestDescription
Test class, or null if this is neither a single test, nor a suite constructed for a test class..

Specified by:
testClass in interface WebTestDescription
Returns:
test class

annotations

public Iterable<Annotation> annotations()
Description copied from interface: WebTestDescription
List of annotations of the test.

Specified by:
annotations in interface WebTestDescription
Returns:
test annotations

categories

public Set<Category> categories()
Description copied from interface: WebTestDescription
Set of categories describing this test.

Specified by:
categories in interface WebTestDescription
Returns:
categories of this test

isTest

public boolean isTest()
Description copied from interface: WebTestDescription
Is it a single test?

Specified by:
isTest in interface WebTestDescription
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 interface WebTestDescription
Returns:
true, if this description describes a test suite, i.e. when WebTestDescription.isTest() returns false

testCount

public int testCount()
Description copied from interface: WebTestDescription
Number of single, 'atomic' tests encapsulated by the described test.

Specified by:
testCount in interface WebTestDescription
Returns:
number of single tests within this test.

children

public Iterable<WebTestDescription> children()
Description copied from interface: WebTestDescription
Descriptions of child tests.

Specified by:
children in interface WebTestDescription
Returns:
descriptions of child tests of the described test

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2013 Atlassian. All Rights Reserved.