@Test public void testWrap_StringIntStringBooleanString() { String input = "flammable/inflammable"; String expected = "flammable/inflammable"; assertEquals(expected, Wrap.wrap(input, 30, "\n", false, "/")); expected = "flammable\ninflammable"; assertEquals(expected, Wrap.wrap(input, 2, "\n", false, "/")); expected = "flammable\ninflammab\nle"; assertEquals(expected, Wrap.wrap(input, 9, "\n", true, "/")); expected = "flammable\ninflammable"; assertEquals(expected, Wrap.wrap(input, 15, "\n", true, "/")); input = "flammableinflammable"; expected = "flammableinflam\nmable"; assertEquals(expected, Wrap.wrap(input, 15, "\n", true, "/")); }
private Wrap() { }
Wrap { private Wrap() { } }
Wrap { private Wrap() { } private  Wrap(); }
Wrap { private Wrap() { } private  Wrap(); static int length(final CharSequence cs); static boolean isBlank(final CharSequence cs); static String wrap(final String str, final int wrapLength); static String wrap(final String str, final int wrapLength, final String newLineStr, final boolean wrapLongWords); static String wrap(final String str, int wrapLength, String newLineStr, final boolean wrapLongWords, String wrapOn); }
Wrap { private Wrap() { } private  Wrap(); static int length(final CharSequence cs); static boolean isBlank(final CharSequence cs); static String wrap(final String str, final int wrapLength); static String wrap(final String str, final int wrapLength, final String newLineStr, final boolean wrapLongWords); static String wrap(final String str, int wrapLength, String newLineStr, final boolean wrapLongWords, String wrapOn);  }