You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/10/17 15:17:03 UTC

[commons-lang] 04/04: Sort members

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit 582717de056e773562f01b73fc56058a8ad92eda
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Oct 17 11:16:54 2023 -0400

    Sort members
---
 .../lang3/exception/ExceptionUtilsTest.java        | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
index 02273d566..484215c41 100644
--- a/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/exception/ExceptionUtilsTest.java
@@ -643,11 +643,6 @@ public class ExceptionUtilsTest extends AbstractLangTest {
         assertTrue(ExceptionUtils.isChecked(new TestThrowable()));
     }
 
-    @Test
-    public void testIsUnchecked_null() {
-        assertFalse(ExceptionUtils.isUnchecked(null));
-    }
-
     @Test
     public void testIsUnchecked_checked() {
         assertFalse(ExceptionUtils.isUnchecked(new IOException()));
@@ -658,6 +653,11 @@ public class ExceptionUtilsTest extends AbstractLangTest {
         assertTrue(ExceptionUtils.isUnchecked(new StackOverflowError()));
     }
 
+    @Test
+    public void testIsUnchecked_null() {
+        assertFalse(ExceptionUtils.isUnchecked(null));
+    }
+
     @Test
     public void testIsUnchecked_unchecked() {
         assertTrue(ExceptionUtils.isUnchecked(new IllegalArgumentException()));
@@ -728,6 +728,13 @@ public class ExceptionUtilsTest extends AbstractLangTest {
         assertThrows(NullPointerException.class, () -> ExceptionUtils.removeCommonFrames(null, null));
     }
 
+    @Test
+    public void testRethrow() {
+        final Exception expected = new InterruptedException();
+        final Exception actual = assertThrows(Exception.class, () -> ExceptionUtils.rethrow(expected));
+        assertSame(expected, actual);
+    }
+
     @Test
     public void testStream_jdkNoCause() {
         assertEquals(1, ExceptionUtils.stream(jdkNoCause).count());
@@ -772,13 +779,6 @@ public class ExceptionUtilsTest extends AbstractLangTest {
         assertSame(withoutCause, throwables.get(0));
     }
 
-    @Test
-    public void testRethrow() {
-        final Exception expected = new InterruptedException();
-        final Exception actual = assertThrows(Exception.class, () -> ExceptionUtils.rethrow(expected));
-        assertSame(expected, actual);
-    }
-
     @Test
     public void testThrowableOf_ThrowableClass() {
         assertNull(ExceptionUtils.throwableOfThrowable(null, null));