mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.hutool.core.text;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import cn.hutool.core.lang.Dict;
|
||||
import cn.hutool.core.util.CharUtil;
|
||||
import org.junit.Assert;
|
||||
@@ -41,4 +42,10 @@ public class NamingCaseTest {
|
||||
.set("DEPT_NAME","DEPT_NAME")
|
||||
.forEach((key, value) -> Assert.assertEquals(value, NamingCase.toUnderlineCase(key)));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void issue3031Test() {
|
||||
final String camelCase = NamingCase.toCamelCase("user_name,BIRTHDAY");
|
||||
Assert.assertEquals("userName,birthday", camelCase);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user