File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/io/input Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,15 +235,6 @@ void testShortReader() throws IOException {
235235 }
236236 }
237237
238- @ Test
239- void testSkipTest () throws IOException {
240- try (BoundedReader mr = new BoundedReader (bufReader1 , 3 )) {
241- mr .skip (2 );
242- mr .read ();
243- assertEquals (-1 , mr .read ());
244- }
245- }
246-
247238 @ Test
248239 void testSkipDoesNotExceedBound () throws IOException {
249240 try (BoundedReader mr = new BoundedReader (new StringReader ("01234567890" ), 3 )) {
@@ -260,6 +251,15 @@ void testSkipDoesNotOverflowCharsRead() throws IOException {
260251 }
261252 }
262253
254+ @ Test
255+ void testSkipTest () throws IOException {
256+ try (BoundedReader mr = new BoundedReader (bufReader1 , 3 )) {
257+ mr .skip (2 );
258+ mr .read ();
259+ assertEquals (-1 , mr .read ());
260+ }
261+ }
262+
263263 @ Test
264264 void testSkipUsesActualSkippedCount () throws IOException {
265265 try (BoundedReader mr = new BoundedReader (new FilterReader (new StringReader ("01234567890" )) {
You can’t perform that action at this time.
0 commit comments