Merge branch 'master' of github.com:nikiroo/nikiroo-utils
[fanfix.git] / src / be / nikiroo / utils / test / TestLauncher.java
index d01e0f802cf026f1aa886d6c99d2917538a67693..3741e976a54dada71bb9fa37f3fa7a07f5e5cafa 100644 (file)
@@ -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());
        }
 
        /**