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-io.git


The following commit(s) were added to refs/heads/master by this push:
     new a2a8172  Sort members.
a2a8172 is described below

commit a2a8172f383da63a8681689ed165699ea88dc5e2
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jul 11 14:13:20 2021 -0400

    Sort members.
---
 .../commons/io/output/AppendableWriterTest.java    | 46 +++++++++++-----------
 1 file changed, 23 insertions(+), 23 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/io/output/AppendableWriterTest.java 
b/src/test/java/org/apache/commons/io/output/AppendableWriterTest.java
index ae2a06e..5b30722 100644
--- a/src/test/java/org/apache/commons/io/output/AppendableWriterTest.java
+++ b/src/test/java/org/apache/commons/io/output/AppendableWriterTest.java
@@ -34,31 +34,14 @@ public class AppendableWriterTest {
         out = new AppendableWriter<>(new StringBuilder());
     }
 
+    @SuppressWarnings("resource")
     @Test
-    public void testWriteInt() throws Exception {
-        out.write('F');
+    public void testAppendChar() throws Exception {
+        out.append('F');
 
         assertEquals("F", out.getAppendable().toString());
     }
 
-    @Test
-    public void testWriteChars() throws Exception {
-        final String testData = "ABCD";
-
-        out.write(testData.toCharArray());
-
-        assertEquals(testData, out.getAppendable().toString());
-    }
-
-    @Test
-    public void testWriteString() throws Exception {
-        final String testData = "ABCD";
-
-        out.write(testData);
-
-        assertEquals(testData, out.getAppendable().toString());
-    }
-
     @SuppressWarnings("resource")
     @Test
     public void testAppendCharSequence() throws Exception {
@@ -81,11 +64,28 @@ public class AppendableWriterTest {
         assertEquals(testData.substring(1, 3) + "ul", 
out.getAppendable().toString());
     }
 
-    @SuppressWarnings("resource")
     @Test
-    public void testAppendChar() throws Exception {
-        out.append('F');
+    public void testWriteChars() throws Exception {
+        final String testData = "ABCD";
+
+        out.write(testData.toCharArray());
+
+        assertEquals(testData, out.getAppendable().toString());
+    }
+
+    @Test
+    public void testWriteInt() throws Exception {
+        out.write('F');
 
         assertEquals("F", out.getAppendable().toString());
     }
+
+    @Test
+    public void testWriteString() throws Exception {
+        final String testData = "ABCD";
+
+        out.write(testData);
+
+        assertEquals(testData, out.getAppendable().toString());
+    }
 }

Reply via email to