@Test (timeout = 30000) public void testCamelize() { assertEquals("Map", StringUtils.camelize("MAP")); assertEquals("JobSetup", StringUtils.camelize("JOB_SETUP")); assertEquals("SomeStuff", StringUtils.camelize("some_stuff")); assertEquals("Aa", StringUtils.camelize("aA")); assertEquals("Bb", StringUtils.camelize("bB")); assertEquals("Cc", StringUtils.camelize("cC")); assertEquals("Dd", StringUtils.camelize("dD")); assertEquals("Ee", StringUtils.camelize("eE")); assertEquals("Ff", StringUtils.camelize("fF")); assertEquals("Gg", StringUtils.camelize("gG")); assertEquals("Hh", StringUtils.camelize("hH")); assertEquals("Ii", StringUtils.camelize("iI")); assertEquals("Jj", StringUtils.camelize("jJ")); assertEquals("Kk", StringUtils.camelize("kK")); assertEquals("Ll", StringUtils.camelize("lL")); assertEquals("Mm", StringUtils.camelize("mM")); assertEquals("Nn", StringUtils.camelize("nN")); assertEquals("Oo", StringUtils.camelize("oO")); assertEquals("Pp", StringUtils.camelize("pP")); assertEquals("Qq", StringUtils.camelize("qQ")); assertEquals("Rr", StringUtils.camelize("rR")); assertEquals("Ss", StringUtils.camelize("sS")); assertEquals("Tt", StringUtils.camelize("tT")); assertEquals("Uu", StringUtils.camelize("uU")); assertEquals("Vv", StringUtils.camelize("vV")); assertEquals("Ww", StringUtils.camelize("wW")); assertEquals("Xx", StringUtils.camelize("xX")); assertEquals("Yy", StringUtils.camelize("yY")); assertEquals("Zz", StringUtils.camelize("zZ")); }
public static String camelize(String s) { StringBuilder sb = new StringBuilder(); String[] words = split(StringUtils.toLowerCase(s), ESCAPE_CHAR, '_'); for (String word : words) sb.append(org.apache.commons.lang.StringUtils.capitalize(word)); return sb.toString(); }
StringUtils { public static String camelize(String s) { StringBuilder sb = new StringBuilder(); String[] words = split(StringUtils.toLowerCase(s), ESCAPE_CHAR, '_'); for (String word : words) sb.append(org.apache.commons.lang.StringUtils.capitalize(word)); return sb.toString(); } }
StringUtils { public static String camelize(String s) { StringBuilder sb = new StringBuilder(); String[] words = split(StringUtils.toLowerCase(s), ESCAPE_CHAR, '_'); for (String word : words) sb.append(org.apache.commons.lang.StringUtils.capitalize(word)); return sb.toString(); }  }
StringUtils { public static String camelize(String s) { StringBuilder sb = new StringBuilder(); String[] words = split(StringUtils.toLowerCase(s), ESCAPE_CHAR, '_'); for (String word : words) sb.append(org.apache.commons.lang.StringUtils.capitalize(word)); return sb.toString(); }  static String stringifyException(Throwable e); static String simpleHostname(String fullHostname); @Deprecated static String humanReadableInt(long number); static String format(final String format, final Object... objects); static String formatPercent(double fraction, int decimalPlaces); static String arrayToString(String[] strs); static String byteToHexString(byte[] bytes, int start, int end); static String byteToHexString(byte bytes[]); static byte[] hexStringToByte(String hex); static String uriToString(URI[] uris); static URI[] stringToURI(String[] str); static Path[] stringToPath(String[] str); static String formatTimeDiff(long finishTime, long startTime); static String formatTime(long timeDiff); static String getFormattedTimeWithDiff(DateFormat dateFormat, 
                                                long finishTime, long startTime); static String[] getStrings(String str); static Collection<String> getStringCollection(String str); static Collection<String> getStringCollection(String str, String delim); static Collection<String> getTrimmedStringCollection(String str); static String[] getTrimmedStrings(String str); static Set<String> getTrimmedStrings(Collection<String> strings); static String[] split(String str); static String[] split(
      String str, char escapeChar, char separator); static String[] split(
      String str, char separator); static int findNext(String str, char separator, char escapeChar, 
                             int start, StringBuilder split); static String escapeString(String str); static String escapeString(
      String str, char escapeChar, char charToEscape); static String escapeString(String str, char escapeChar, 
                                    char[] charsToEscape); static String unEscapeString(String str); static String unEscapeString(
      String str, char escapeChar, char charToEscape); static String unEscapeString(String str, char escapeChar, 
                                      char[] charsToEscape); static void startupShutdownMessage(Class<?> clazz, String[] args,
                                     final org.apache.commons.logging.Log LOG); static void startupShutdownMessage(Class<?> clazz, String[] args,
                                     final org.slf4j.Logger LOG); static String escapeHTML(String string); static String byteDesc(long len); @Deprecated static String limitDecimalTo2(double d); static String join(CharSequence separator, Iterable<?> strings); static String join(char separator, Iterable<?> strings); static String join(CharSequence separator, String[] strings); static String join(char separator, String[] strings); static String camelize(String s); static String replaceTokens(String template, Pattern pattern,
      Map<String, String> replacements); static String getStackTrace(Thread t); static String popOptionWithArgument(String name, List<String> args); static boolean popOption(String name, List<String> args); static String popFirstNonOption(List<String> args); static String toLowerCase(String str); static String toUpperCase(String str); static boolean equalsIgnoreCase(String s1, String s2); }
StringUtils { public static String camelize(String s) { StringBuilder sb = new StringBuilder(); String[] words = split(StringUtils.toLowerCase(s), ESCAPE_CHAR, '_'); for (String word : words) sb.append(org.apache.commons.lang.StringUtils.capitalize(word)); return sb.toString(); }  static String stringifyException(Throwable e); static String simpleHostname(String fullHostname); @Deprecated static String humanReadableInt(long number); static String format(final String format, final Object... objects); static String formatPercent(double fraction, int decimalPlaces); static String arrayToString(String[] strs); static String byteToHexString(byte[] bytes, int start, int end); static String byteToHexString(byte bytes[]); static byte[] hexStringToByte(String hex); static String uriToString(URI[] uris); static URI[] stringToURI(String[] str); static Path[] stringToPath(String[] str); static String formatTimeDiff(long finishTime, long startTime); static String formatTime(long timeDiff); static String getFormattedTimeWithDiff(DateFormat dateFormat, 
                                                long finishTime, long startTime); static String[] getStrings(String str); static Collection<String> getStringCollection(String str); static Collection<String> getStringCollection(String str, String delim); static Collection<String> getTrimmedStringCollection(String str); static String[] getTrimmedStrings(String str); static Set<String> getTrimmedStrings(Collection<String> strings); static String[] split(String str); static String[] split(
      String str, char escapeChar, char separator); static String[] split(
      String str, char separator); static int findNext(String str, char separator, char escapeChar, 
                             int start, StringBuilder split); static String escapeString(String str); static String escapeString(
      String str, char escapeChar, char charToEscape); static String escapeString(String str, char escapeChar, 
                                    char[] charsToEscape); static String unEscapeString(String str); static String unEscapeString(
      String str, char escapeChar, char charToEscape); static String unEscapeString(String str, char escapeChar, 
                                      char[] charsToEscape); static void startupShutdownMessage(Class<?> clazz, String[] args,
                                     final org.apache.commons.logging.Log LOG); static void startupShutdownMessage(Class<?> clazz, String[] args,
                                     final org.slf4j.Logger LOG); static String escapeHTML(String string); static String byteDesc(long len); @Deprecated static String limitDecimalTo2(double d); static String join(CharSequence separator, Iterable<?> strings); static String join(char separator, Iterable<?> strings); static String join(CharSequence separator, String[] strings); static String join(char separator, String[] strings); static String camelize(String s); static String replaceTokens(String template, Pattern pattern,
      Map<String, String> replacements); static String getStackTrace(Thread t); static String popOptionWithArgument(String name, List<String> args); static boolean popOption(String name, List<String> args); static String popFirstNonOption(List<String> args); static String toLowerCase(String str); static String toUpperCase(String str); static boolean equalsIgnoreCase(String s1, String s2); static final int SHUTDOWN_HOOK_PRIORITY; static final Pattern SHELL_ENV_VAR_PATTERN; static final Pattern WIN_ENV_VAR_PATTERN; static final Pattern ENV_VAR_PATTERN; final static String[] emptyStringArray; final static char COMMA; final static String COMMA_STR; final static char ESCAPE_CHAR; }