GroboUtils
GroboUtils aims to expand the testing possibilities of Java. It contains many sub-projects which experiment with different aspects of testing through Java.
The popular tools included with GroboUtils include multi-threaded tests, hierarchial unit tests, and a code coverage tool.
This toolset is released under the MIT license.
Example
package com.my.lpm.test.net;
import net.sourceforge.groboutils.junit.v1.MultiThreadedTestRunner;
import net.sourceforge.groboutils.junit.v1.TestRunnable;
import org.junit.Test;
public class HttpCommunicationTest {
public class ThreadTestRunner extends TestRunnable {
@Override
public void runTest() {
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
}
@Test
public void testMain() throws Throwable {
MultiThreadedTestRunner test = new MultiThreadedTestRunner(
new TestRunnable[] { new ThreadTestRunner() });
test.runTestRunnables();
System.out.println("Test end.");
}
}