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

java.lang.Objectorg.junit.runners.model.Statement
patterntesting.runtime.junit.internal.ProfiledStatement
public class ProfiledStatement
The ProfiledStatement measures also the time the different setUp() and tearDown() methods need. In contradiction to the original JUnit statement this statement is not only a wrapper around the test method but contains also the setUp and tearDown methods. And it is able to handle JUnit4 and JUnit3 methods.
| Constructor Summary | |
|---|---|
ProfiledStatement(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.FrameworkMethod frameworkMethod)
The default constructor for this class if the call of the frameworkMethod is ok. |
|
| Method Summary | |
|---|---|
void |
endTimer()
The timer should end after the last tearDown() method was called. |
void |
evaluate()
Invokes the test method. |
protected String |
getMethodName()
May be needed by some subclasses. |
static boolean |
isTestCaseClass(org.junit.runners.model.TestClass testClass)
|
void |
startAftersTimer()
Here we start the timer when the first tearDown() method was called. |
void |
startTestTimer()
Here we start the timer when the test method was called. |
void |
startTimer()
Here we start the timer when the first setUp() method was called. |
String |
toString()
Returns the name of the method with the measured times. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ProfiledStatement(org.junit.runners.model.TestClass testClass,
org.junit.runners.model.FrameworkMethod frameworkMethod)
testClass - the test classframeworkMethod - the FrameworkMethod| Method Detail |
|---|
protected final String getMethodName()
public void evaluate()
throws Throwable
evaluate in class org.junit.runners.model.StatementThrowable - the throwableStatement.evaluate()public final void startTimer()
public final void startTestTimer()
public final void startAftersTimer()
public final void endTimer()
public String toString()
toString in class ObjectObject.toString()public static boolean isTestCaseClass(org.junit.runners.model.TestClass testClass)
testClass - the test class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||