Move test code out of "test" package
[nikiroo-utils.git] / src / be / nikiroo / utils / test / TestLauncher.java
index bee3071d7fce7a8689a1be50492b2ca28f729e68..9b841a4a79a4da6a775697457b6384744f6fdd53 100644 (file)
@@ -96,7 +96,6 @@ public class TestLauncher {
         * @throws Exception
         *             in case of error
         */
-       @SuppressWarnings("unused")
        protected void start() throws Exception {
        }
 
@@ -106,7 +105,6 @@ public class TestLauncher {
         * @throws Exception
         *             in case of error
         */
-       @SuppressWarnings("unused")
        protected void stop() throws Exception {
        }
 
@@ -287,11 +285,12 @@ public class TestLauncher {
                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());
        }
 
        /**