|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.junit.internal.DescriptionUtils
public class DescriptionUtils
This class provides some utiltis for the Description class for older versions of JUnit 4. In newer versions we have some more methods to use but because we want to support also JUnit 4.4 we provide the missing methods here.
| Method Summary | |
|---|---|
static org.junit.runner.Description |
createTestDescription(org.junit.runner.Description description,
Annotation[] annotations)
Creates the test description. |
static String |
getMethodNameOf(org.junit.runner.Description description)
Gets the method name the given description. |
static Class<?> |
getTestClassOf(org.junit.runner.Description description)
Here we extract the test class from the given descripiton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@MayReturnNull public static Class<?> getTestClassOf(org.junit.runner.Description description)
description - the description
@MayReturnNull public static String getMethodNameOf(org.junit.runner.Description description)
Description class.
description - the description
public static org.junit.runner.Description createTestDescription(org.junit.runner.Description description,
Annotation[] annotations)
description - the descriptionannotations - the annotations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||