@Test public void removePartTest() { String sql = null; String removePart = StringUtils.removePart(sql, ""); Assert.assertNull(removePart); sql = " "; removePart = StringUtils.removePart(sql, ""); Assert.assertEquals(removePart, " "); sql = "toto"; removePart = StringUtils.removePart(sql, ""); Assert.assertEquals(removePart, "toto"); sql = "select Price from products;"; removePart = StringUtils.removePart(sql, ""); Assert.assertEquals(removePart, "select Price from products;"); sql = " select Price from products;"; removePart = StringUtils.removePart(sql, ""); Assert.assertEquals(removePart, " select Price from products;"); sql = " select Price from products; "; removePart = StringUtils.removePart(sql, ""); Assert.assertEquals(removePart, " select Price from products; "); StringUtils.removePart(sql, ""); }
public static String removePart(final String str, final String start, final String end) { return removePart(str, start, end, null, new Integer(0)); }
StringUtils { public static String removePart(final String str, final String start, final String end) { return removePart(str, start, end, null, new Integer(0)); } }
StringUtils { public static String removePart(final String str, final String start, final String end) { return removePart(str, start, end, null, new Integer(0)); } private  StringUtils(); }
StringUtils { public static String removePart(final String str, final String start, final String end) { return removePart(str, start, end, null, new Integer(0)); } private  StringUtils(); static String padRight(final String s, final int n); static String padRight(final String start, final String s, final int n); static String replaceAll(final String str, final String replace, final String replacement); static String removePart(final String str, final String start, final String end); static String removePart(final String str, final String start, final String end, final String exception); static int beginPart(final String str, final String start, final String end, final String exception,
			final int first); }
StringUtils { public static String removePart(final String str, final String start, final String end) { return removePart(str, start, end, null, new Integer(0)); } private  StringUtils(); static String padRight(final String s, final int n); static String padRight(final String start, final String s, final int n); static String replaceAll(final String str, final String replace, final String replacement); static String removePart(final String str, final String start, final String end); static String removePart(final String str, final String start, final String end, final String exception); static int beginPart(final String str, final String start, final String end, final String exception,
			final int first);  }