org.junit.internal.runners.InitializationError Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of junit Show documentation
Show all versions of junit Show documentation
JUnit is a regression testing framework written by Erich Gamma and Kent Beck.
It is used by the developer who implements unit tests in Java.
package org.junit.internal.runners;
import java.util.Arrays;
import java.util.List;
/**
* Use the published version: {@link org.junit.runners.InitializationError}
* This may disappear as soon as 1 April 2009
*/
@Deprecated
public class InitializationError extends Exception {
private static final long serialVersionUID = 1L;
private final List fErrors;
public InitializationError(List errors) {
fErrors = errors;
}
public InitializationError(Throwable... errors) {
this(Arrays.asList(errors));
}
public InitializationError(String string) {
this(new Exception(string));
}
public List getCauses() {
return fErrors;
}
}