TextTableFormatter { public static TextTableFormatter1 forHeadings(String col0) { TextTableFormatter1 result = new TextTableFormatter1(); result.headings(col0); return result; } private  TextTableFormatter(); String format(); String toCSV(); static TextTableFormatter1 forHeadings(String col0); static TextTableFormatter2 forHeadings(String col0, String col1); static TextTableFormatter3 forHeadings(String col0, String col1, String col2); static TextTableFormatter4 forHeadings(String col0, String col1, String col2, String col3); static TextTableFormatter5 forHeadings(String col0, String col1, String col2, String col3, String col4); static TextTableFormatter6 forHeadings(String col0, String col1, String col2, String col3, String col4, String col5); static TextTableFormatter7 forHeadings(String col0, String col1, String col2, String col3, String col4, String col5, String col6);  }
@Test public void testLeftJustify() throws Exception { TextTableFormatter.TextTableFormatter1 textTableFormatter = TextTableFormatter.forHeadings("foo"); String text = TextTableFormatter.Justifier.left("hello", 10); assertEquals("hello ", text); }
@Test public void testRightJustify() throws Exception { TextTableFormatter.TextTableFormatter1 textTableFormatter = TextTableFormatter.forHeadings("foo"); String text = TextTableFormatter.Justifier.right("hello", 10); assertEquals(" hello", text); }