Version 1.2.3: getVersion, openResource, fixes
[nikiroo-utils.git] / src / be / nikiroo / utils / test / TestLauncher.java
index b6118df103ee68711273e30b0ae33d3517883855..10a6e2794811036a12f21239d254f7dd3e2c483b 100644 (file)
@@ -5,8 +5,6 @@ import java.io.StringWriter;
 import java.util.ArrayList;
 import java.util.List;
 
-import be.nikiroo.utils.test.TestCase.AssertException;
-
 /**
  * A {@link TestLauncher} starts a series of {@link TestCase}s and displays the
  * result to the user.
@@ -305,13 +303,10 @@ public class TestLauncher {
        private void print(int depth, Exception error) {
                if (error != null) {
                        System.out.println(" " + koString);
-                       String lines = error.getMessage() + "";
-                       if (!(error instanceof AssertException)) {
-                               StringWriter sw = new StringWriter();
-                               PrintWriter pw = new PrintWriter(sw);
-                               error.printStackTrace(pw);
-                               lines = sw.toString();
-                       }
+                       StringWriter sw = new StringWriter();
+                       PrintWriter pw = new PrintWriter(sw);
+                       error.printStackTrace(pw);
+                       String lines = sw.toString();
                        for (String line : lines.split("\n")) {
                                System.out.println(prefix(depth, false) + "\t\t" + line);
                        }