Simple formatting of a test timing row. Will print wider if the test name doesn't fit @param name test name @param time time the test took @param width character width for the table. @return left aligned test name and right aligned time within width characters (if it fits)
(String name, long time, int width)
| 205 | * @return left aligned test name and right aligned time within {@code width} characters (if it fits) |
| 206 | */ |
| 207 | private static String formatTimeRow(String name, long time, int width) { |
| 208 | return name + StringUtils.padLeft(String.valueOf(time), Math.max(0, width - name.length())); |
| 209 | } |
| 210 | |
| 211 | /** |
| 212 | * @return an array of all the test classes in the classpath |