X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Ftest%2FTestLauncher.java;h=3741e976a54dada71bb9fa37f3fa7a07f5e5cafa;hb=5795c978b9308afeb07e1cd41b0067c8278427c3;hp=d01e0f802cf026f1aa886d6c99d2917538a67693;hpb=e9ca6bb892b5358a273807bff834945ffe7b0cee;p=fanfix.git diff --git a/src/be/nikiroo/utils/test/TestLauncher.java b/src/be/nikiroo/utils/test/TestLauncher.java index d01e0f8..3741e97 100644 --- a/src/be/nikiroo/utils/test/TestLauncher.java +++ b/src/be/nikiroo/utils/test/TestLauncher.java @@ -96,6 +96,7 @@ public class TestLauncher { * @throws Exception * in case of error */ + @SuppressWarnings("unused") protected void start() throws Exception { } @@ -105,6 +106,7 @@ public class TestLauncher { * @throws Exception * in case of error */ + @SuppressWarnings("unused") protected void stop() throws Exception { } @@ -278,18 +280,19 @@ public class TestLauncher { * * @param depth * the level at which is the launcher (0 = main launcher) - * @param test - * the {@link TestCase} + * @param name + * the {@link TestCase} name */ protected void print(int depth, String name) { name = prefix(depth, false) + (name == null ? "" : name).replace("\t", " "); - while (name.length() < columns - 11) { - name += "."; + StringBuilder dots = new StringBuilder(); + while ((name.length() + dots.length()) < columns - 11) { + dots.append('.'); } - System.out.print(name); + System.out.print(name + dots.toString()); } /**