com.anarsoft.vmlens.concurrent.junit.JUnitCoreParallelize Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of concurrent-junit Show documentation
Show all versions of concurrent-junit Show documentation
A http://junit.org test runner to run concurrent unit tests.
The newest version!
package com.anarsoft.vmlens.concurrent.junit;
import java.util.Set;
import org.junit.runner.Request;
import org.junit.runner.notification.RunNotifier;
import org.reflections.Reflections;
import org.reflections.scanners.SubTypesScanner;
public class JUnitCoreParallelize {
public static void runTest(String packageName) throws Exception {
// Class cl = JUnitCoreParallelize.class.getClassLoader().loadClass("com.fasterxml.jackson.core.json.ArrayGenerationTest");
//
//
// final Request req = Request.aClass(cl);
// final RunNotifier notifier = new RunNotifier();
//
// TestUtil.runMultithreaded( new Runnable()
// {
//
// public void run() {
//
//
// req.getRunner().run(notifier);
//
//
// }
//
// }, 5);
Reflections reflections = new Reflections(packageName , new SubTypesScanner(false) , JUnitCoreParallelize.class.getClassLoader() );
Set subTypes = reflections.getSubTypesOf(Object.class);
for( Object obj : subTypes )
{
System.out.println(obj);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy