public class TestUtil extends Object
| Constructor and Description |
|---|
TestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
runMultithreaded(Runnable runnable,
int threadCount)
Runs the runnables with threadCount threads in parallel.
|
public static void runMultithreaded(Runnable runnable, int threadCount) throws InterruptedException
TestUtil.runMultithreaded( new Runnable() {
public void run() {
try{
shouldFindAllPetTypes();
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
, 5);
runnable - threadCount - InterruptedExceptionCopyright © 2017. All rights reserved.