Skip to content

Commit a2a8172

Browse files
committed
Sort members.
1 parent 2ab600c commit a2a8172

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

src/test/java/org/apache/commons/io/output/AppendableWriterTest.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,14 @@ public void setUp() {
3434
out = new AppendableWriter<>(new StringBuilder());
3535
}
3636

37+
@SuppressWarnings("resource")
3738
@Test
38-
public void testWriteInt() throws Exception {
39-
out.write('F');
39+
public void testAppendChar() throws Exception {
40+
out.append('F');
4041

4142
assertEquals("F", out.getAppendable().toString());
4243
}
4344

44-
@Test
45-
public void testWriteChars() throws Exception {
46-
final String testData = "ABCD";
47-
48-
out.write(testData.toCharArray());
49-
50-
assertEquals(testData, out.getAppendable().toString());
51-
}
52-
53-
@Test
54-
public void testWriteString() throws Exception {
55-
final String testData = "ABCD";
56-
57-
out.write(testData);
58-
59-
assertEquals(testData, out.getAppendable().toString());
60-
}
61-
6245
@SuppressWarnings("resource")
6346
@Test
6447
public void testAppendCharSequence() throws Exception {
@@ -81,11 +64,28 @@ public void testAppendSubSequence() throws Exception {
8164
assertEquals(testData.substring(1, 3) + "ul", out.getAppendable().toString());
8265
}
8366

84-
@SuppressWarnings("resource")
8567
@Test
86-
public void testAppendChar() throws Exception {
87-
out.append('F');
68+
public void testWriteChars() throws Exception {
69+
final String testData = "ABCD";
70+
71+
out.write(testData.toCharArray());
72+
73+
assertEquals(testData, out.getAppendable().toString());
74+
}
75+
76+
@Test
77+
public void testWriteInt() throws Exception {
78+
out.write('F');
8879

8980
assertEquals("F", out.getAppendable().toString());
9081
}
82+
83+
@Test
84+
public void testWriteString() throws Exception {
85+
final String testData = "ABCD";
86+
87+
out.write(testData);
88+
89+
assertEquals(testData, out.getAppendable().toString());
90+
}
9191
}

0 commit comments

Comments
 (0)