Menu

#22 junitx.util.AbstractSuiteBuilder --> Support for JUnit 4

open
Main module (8)
5
2010-07-13
2010-07-13
Thomas M.
No

Does not work for JUnit 4 classes not extending TestCase:

protected void merge(List classenames, TestSuite suite) throws ClassNotFoundException, IllegalAccessException, InvocationTargetException {
for (int i = 0; i < classenames.size(); i++) {
String classname = (String) classenames.get(i);
Class cls = Class.forName(classname);

if (junit.framework.TestCase.class.isAssignableFrom(cls) && (filter == null || filter.include(cls))) {
...

Is Junit 4 support planned?

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.