Example #1
0
 @Test
 public void testPadRightString() {
   String test = StringUtil.padRight("test-data", "<>", 5);
   assertEquals("test-data<><><><><>", test);
 }
Example #2
0
 @Test
 public void testPadRightChar() {
   String test = StringUtil.padRight("test-data", '+', 5);
   assertEquals("test-data+++++", test);
 }