Sort members.
This commit is contained in:
parent
a3aa116d35
commit
c3077ad1c1
|
@ -57,19 +57,18 @@ public class StringUtilsIsTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void testIsWhitespace() {
|
||||
assertFalse(StringUtils.isWhitespace(null));
|
||||
assertTrue(StringUtils.isWhitespace(""));
|
||||
assertTrue(StringUtils.isWhitespace(" "));
|
||||
assertTrue(StringUtils.isWhitespace("\t \n \t"));
|
||||
assertFalse(StringUtils.isWhitespace("\t aa\n \t"));
|
||||
assertTrue(StringUtils.isWhitespace(" "));
|
||||
assertFalse(StringUtils.isWhitespace(" a "));
|
||||
assertFalse(StringUtils.isWhitespace("a "));
|
||||
assertFalse(StringUtils.isWhitespace(" a"));
|
||||
assertFalse(StringUtils.isWhitespace("aba"));
|
||||
assertTrue(StringUtils.isWhitespace(StringUtilsTest.WHITESPACE));
|
||||
assertFalse(StringUtils.isWhitespace(StringUtilsTest.NON_WHITESPACE));
|
||||
public void testIsAlphanumericSpace() {
|
||||
assertFalse(StringUtils.isAlphanumericSpace(null));
|
||||
assertTrue(StringUtils.isAlphanumericSpace(""));
|
||||
assertTrue(StringUtils.isAlphanumericSpace(" "));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("a"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("A"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("kgKgKgKgkgkGkjkjlJlOKLgHdGdHgl"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("ham kso"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("1"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("hkHKHik6iUGHKJgU7tUJgKJGI87GIkug"));
|
||||
assertFalse(StringUtils.isAlphanumericSpace("_"));
|
||||
assertFalse(StringUtils.isAlphanumericSpace("hkHKHik*khbkuh"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -87,21 +86,6 @@ public class StringUtilsIsTest {
|
|||
assertFalse(StringUtils.isAlphaSpace("hkHKHik*khbkuh"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsAlphanumericSpace() {
|
||||
assertFalse(StringUtils.isAlphanumericSpace(null));
|
||||
assertTrue(StringUtils.isAlphanumericSpace(""));
|
||||
assertTrue(StringUtils.isAlphanumericSpace(" "));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("a"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("A"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("kgKgKgKgkgkGkjkjlJlOKLgHdGdHgl"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("ham kso"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("1"));
|
||||
assertTrue(StringUtils.isAlphanumericSpace("hkHKHik6iUGHKJgU7tUJgKJGI87GIkug"));
|
||||
assertFalse(StringUtils.isAlphanumericSpace("_"));
|
||||
assertFalse(StringUtils.isAlphanumericSpace("hkHKHik*khbkuh"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsAsciiPrintable_String() {
|
||||
assertFalse(StringUtils.isAsciiPrintable(null));
|
||||
|
@ -170,4 +154,20 @@ public class StringUtilsIsTest {
|
|||
assertFalse(StringUtils.isNumericSpace("hkHKHik*khbkuh"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testIsWhitespace() {
|
||||
assertFalse(StringUtils.isWhitespace(null));
|
||||
assertTrue(StringUtils.isWhitespace(""));
|
||||
assertTrue(StringUtils.isWhitespace(" "));
|
||||
assertTrue(StringUtils.isWhitespace("\t \n \t"));
|
||||
assertFalse(StringUtils.isWhitespace("\t aa\n \t"));
|
||||
assertTrue(StringUtils.isWhitespace(" "));
|
||||
assertFalse(StringUtils.isWhitespace(" a "));
|
||||
assertFalse(StringUtils.isWhitespace("a "));
|
||||
assertFalse(StringUtils.isWhitespace(" a"));
|
||||
assertFalse(StringUtils.isWhitespace("aba"));
|
||||
assertTrue(StringUtils.isWhitespace(StringUtilsTest.WHITESPACE));
|
||||
assertFalse(StringUtils.isWhitespace(StringUtilsTest.NON_WHITESPACE));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue