Sort members.

This commit is contained in:
Gary Gregory 2019-09-11 10:25:48 -04:00
parent a3aa116d35
commit c3077ad1c1
1 changed files with 28 additions and 28 deletions

View File

@ -57,19 +57,18 @@ public class StringUtilsIsTest {
} }
@Test @Test
public void testIsWhitespace() { public void testIsAlphanumericSpace() {
assertFalse(StringUtils.isWhitespace(null)); assertFalse(StringUtils.isAlphanumericSpace(null));
assertTrue(StringUtils.isWhitespace("")); assertTrue(StringUtils.isAlphanumericSpace(""));
assertTrue(StringUtils.isWhitespace(" ")); assertTrue(StringUtils.isAlphanumericSpace(" "));
assertTrue(StringUtils.isWhitespace("\t \n \t")); assertTrue(StringUtils.isAlphanumericSpace("a"));
assertFalse(StringUtils.isWhitespace("\t aa\n \t")); assertTrue(StringUtils.isAlphanumericSpace("A"));
assertTrue(StringUtils.isWhitespace(" ")); assertTrue(StringUtils.isAlphanumericSpace("kgKgKgKgkgkGkjkjlJlOKLgHdGdHgl"));
assertFalse(StringUtils.isWhitespace(" a ")); assertTrue(StringUtils.isAlphanumericSpace("ham kso"));
assertFalse(StringUtils.isWhitespace("a ")); assertTrue(StringUtils.isAlphanumericSpace("1"));
assertFalse(StringUtils.isWhitespace(" a")); assertTrue(StringUtils.isAlphanumericSpace("hkHKHik6iUGHKJgU7tUJgKJGI87GIkug"));
assertFalse(StringUtils.isWhitespace("aba")); assertFalse(StringUtils.isAlphanumericSpace("_"));
assertTrue(StringUtils.isWhitespace(StringUtilsTest.WHITESPACE)); assertFalse(StringUtils.isAlphanumericSpace("hkHKHik*khbkuh"));
assertFalse(StringUtils.isWhitespace(StringUtilsTest.NON_WHITESPACE));
} }
@Test @Test
@ -87,21 +86,6 @@ public class StringUtilsIsTest {
assertFalse(StringUtils.isAlphaSpace("hkHKHik*khbkuh")); 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 @Test
public void testIsAsciiPrintable_String() { public void testIsAsciiPrintable_String() {
assertFalse(StringUtils.isAsciiPrintable(null)); assertFalse(StringUtils.isAsciiPrintable(null));
@ -170,4 +154,20 @@ public class StringUtilsIsTest {
assertFalse(StringUtils.isNumericSpace("hkHKHik*khbkuh")); 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));
}
} }