From c3077ad1c12c81acc3d847de4d1569666fa99b2b Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Wed, 11 Sep 2019 10:25:48 -0400 Subject: [PATCH] Sort members. --- .../commons/lang3/StringUtilsIsTest.java | 56 +++++++++---------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java index ad3e2da07..a2586b6db 100644 --- a/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java +++ b/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java @@ -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)); + } + }