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