public void assertErrorHasNoStackTraces(ExecutionResult result) {
   String error = result.getError();
   if (result instanceof ExecutionFailure) {
     // Axe everything after the expected exception
     int pos = error.indexOf("* Exception is:" + TextUtil.getPlatformLineSeparator());
     if (pos >= 0) {
       error = error.substring(0, pos);
     }
   }
   assertNoStackTraces(error, "Standard error");
 }
 public void assertOutputHasNoDeprecationWarnings(ExecutionResult result) {
   assertNoDeprecationWarnings(result.getOutput(), "Standard output");
   assertNoDeprecationWarnings(result.getError(), "Standard error");
 }