void () { List<Throwable> problems = TestAll.getLoadingClassProblems(); if (problems.isEmpty()) return; StringBuilder builder = new StringBuilder("The following test classes were not loaded:\n"); for (Throwable each : problems) { builder.append(ExceptionUtil.getThrowableText(each)).append("\n"); each.printStackTrace(System.out); } throw new AssertionError(builder.toString()); }