- assigned_to: nobody --> wolfgang_fahl
com.meterware.servletunit.JUnitServlet depends on JUnit 3.8's TestSuiteLoader and StandardTestSuiteLoader classes. These classes were removed in JUnit4. There is a simple solution that works for both JUnit 3 and JUnit 4.
In JUnitServlet, replace:
public TestSuiteLoader getLoader() {
return new StandardTestSuiteLoader();
}
...with:
protected boolean useReloadingTestSuiteLoader() {
return false;
}
...and remove the imports of TestSuiteLoader and StandardTestSuiteLoader.
In JUnit 3.8, junit.runner.BaseTestRunner.getLoader() calls useReloadingTestSuiteLoader() to determine whether to use StandandardTestSuiteLoader. In JUnit 4, the getLoader() method doesn't exist, and suites are loaded the same way as StandandardTestSuiteLoader loaded suites in JUnit 3.8.