|
|
@ -59,7 +59,6 @@ public class StringUtilTest {
|
|
|
|
Assert.isTrue(StringUtil.isBlank(string));
|
|
|
|
Assert.isTrue(StringUtil.isBlank(string));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void isNotBlank() {
|
|
|
|
public void isNotBlank() {
|
|
|
|
String string = "null";
|
|
|
|
String string = "null";
|
|
|
@ -82,13 +81,13 @@ public class StringUtilTest {
|
|
|
|
public void toUnderlineCase() {
|
|
|
|
public void toUnderlineCase() {
|
|
|
|
String string = "str";
|
|
|
|
String string = "str";
|
|
|
|
String s = StringUtil.toUnderlineCase(string);
|
|
|
|
String s = StringUtil.toUnderlineCase(string);
|
|
|
|
Assert.isTrue(Objects.equals(s,"str"));
|
|
|
|
Assert.isTrue(Objects.equals(s, "str"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void toSymbolCase() {
|
|
|
|
public void toSymbolCase() {
|
|
|
|
String string = "str";
|
|
|
|
String string = "str";
|
|
|
|
String s = StringUtil.toSymbolCase(string,StringUtil.UNDERLINE);
|
|
|
|
String s = StringUtil.toSymbolCase(string, StringUtil.UNDERLINE);
|
|
|
|
Assert.isTrue(Objects.equals(s,"str"));
|
|
|
|
Assert.isTrue(Objects.equals(s, "str"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|