Filter out stack trace lines coming from the various JUnit TestRunners.
if (in == null) {
return null;
}
if (
util.match(
"/at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner/", in)) {
return null;
} else if (
util.match(
"/at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner/",
in)) {
return null;
} else if (
util.match(
"/at com.intellij/",
in)) {
return null;
} else if (in.indexOf("at junit.") >= 0 && in.indexOf("ui.TestRunner") >= 0) {
return null;
} else if (in.indexOf("org.apache.maven") >= 0) {
return null;
} else if (util.match("/\\sat /", in)) {
return "\t" + in.trim();
} else {
return in;
}