|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jrunit.decorators.JunitLoopDecorator
public class JunitLoopDecorator
Decorates a testcase with a number of loops. $Id: JunitLoopDecorator.java,v 1.6 2005/10/17 17:05:59 msurtani Exp $
Constructor Summary | |
---|---|
JunitLoopDecorator(java.lang.String loopName,
java.lang.Class testClazz,
int loops,
long timeWait)
|
|
JunitLoopDecorator(java.lang.String loopName,
java.lang.Class testClazz,
int loops,
long timeWait,
ThreadListener threadSynchronizer)
|
|
JunitLoopDecorator(java.lang.String loopName,
java.lang.Class testClazz,
int loops,
long timeWait,
ThreadListener threadSynchronizer,
junit.framework.TestResult result)
|
Method Summary | |
---|---|
int |
countTestCases()
|
junit.framework.TestResult |
getResult()
|
junit.framework.TestCase |
getTestCase()
|
junit.framework.Test |
getTestDecorated()
Returns the Test created by this decorator |
void |
loopSetup()
Called before starting threads |
void |
loopTearDown()
Called when all threads have been finished |
void |
run()
|
void |
run(junit.framework.TestResult run)
Runs the test. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JunitLoopDecorator(java.lang.String loopName, java.lang.Class testClazz, int loops, long timeWait)
public JunitLoopDecorator(java.lang.String loopName, java.lang.Class testClazz, int loops, long timeWait, ThreadListener threadSynchronizer)
public JunitLoopDecorator(java.lang.String loopName, java.lang.Class testClazz, int loops, long timeWait, ThreadListener threadSynchronizer, junit.framework.TestResult result)
Method Detail |
---|
public int countTestCases()
countTestCases
in interface junit.framework.Test
public junit.framework.Test getTestDecorated()
public void run(junit.framework.TestResult run)
run
in interface junit.framework.Test
result
- Test result.public void run()
run
in interface java.lang.Runnable
public junit.framework.TestResult getResult()
public junit.framework.TestCase getTestCase()
public void loopSetup()
public void loopTearDown()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |