*
* @throws InitializationError
*/
private void validateTestClass() throws InitializationError
{
TestClass test = getTestClass();
List<Throwable> errors= new ArrayList<Throwable>();
if (!FileTest.class.isAssignableFrom(test.getJavaClass())) {
errors.add(new Exception("The test class " + test.getName() + " should implement FileTest"));
}
if (test.getOnlyConstructor().getParameterTypes().length != 0) {
errors.add(new Exception("Constructor of " + test.getName() + " should have no parameters"));
}
validatePublicVoidNoArgMethods(Test.class, false, errors);
if (errors.size() != 0) {
throw new InitializationError(errors);
}