@@ -44,7 +44,7 @@ public class MemoryMappedFileInputStreamTest {
4444 Path tempDir ;
4545
4646 @ AfterEach
47- void afterEach () {
47+ public void afterEach () {
4848 // Ask to run the garbage collector to clean up memory mapped buffers,
4949 // otherwise the temporary files won't be able to be removed when running on
5050 // Windows. Calling gc() is just a hint to the VM.
@@ -71,7 +71,7 @@ private MemoryMappedFileInputStream newStream(final Path file, final int bufferS
7171 }
7272
7373 @ Test
74- void testAlternateBufferSize () throws IOException {
74+ public void testAlternateBufferSize () throws IOException {
7575 // setup
7676 final Path file = createTestFile (1024 * 1024 );
7777 final byte [] expectedData = Files .readAllBytes (file );
@@ -84,7 +84,7 @@ void testAlternateBufferSize() throws IOException {
8484 }
8585
8686 @ Test
87- void testEmptyFile () throws IOException {
87+ public void testEmptyFile () throws IOException {
8888 // setup
8989 final Path file = createTestFile (0 );
9090 // test
@@ -95,7 +95,7 @@ void testEmptyFile() throws IOException {
9595 }
9696
9797 @ Test
98- void testLargerFile () throws IOException {
98+ public void testLargerFile () throws IOException {
9999 // setup
100100 final Path file = createTestFile (1024 * 1024 );
101101 final byte [] expectedData = Files .readAllBytes (file );
@@ -108,7 +108,7 @@ void testLargerFile() throws IOException {
108108 }
109109
110110 @ Test
111- void testReadAfterClose () throws IOException {
111+ public void testReadAfterClose () throws IOException {
112112 // setup
113113 final Path file = createTestFile (1 * 1024 * 1024 );
114114
@@ -121,7 +121,7 @@ void testReadAfterClose() throws IOException {
121121 }
122122
123123 @ Test
124- void testReadSingleByte () throws IOException {
124+ public void testReadSingleByte () throws IOException {
125125 // setup
126126 final Path file = createTestFile (2 );
127127 final byte [] expectedData = Files .readAllBytes (file );
@@ -136,7 +136,7 @@ void testReadSingleByte() throws IOException {
136136 }
137137
138138 @ Test
139- void testSkipAtStart () throws IOException {
139+ public void testSkipAtStart () throws IOException {
140140 // setup
141141 final Path file = createTestFile (100 );
142142 final byte [] expectedData = Files .readAllBytes (file );
@@ -151,7 +151,7 @@ void testSkipAtStart() throws IOException {
151151 }
152152
153153 @ Test
154- void testSkipEmpty () throws IOException {
154+ public void testSkipEmpty () throws IOException {
155155 // setup
156156 final Path file = createTestFile (0 );
157157 // test
@@ -163,7 +163,7 @@ void testSkipEmpty() throws IOException {
163163 }
164164
165165 @ Test
166- void testSkipInCurrentBuffer () throws IOException {
166+ public void testSkipInCurrentBuffer () throws IOException {
167167 // setup
168168 final Path file = createTestFile (100 );
169169 final byte [] expectedData = Files .readAllBytes (file );
@@ -180,7 +180,7 @@ void testSkipInCurrentBuffer() throws IOException {
180180
181181 @ ParameterizedTest
182182 @ ValueSource (ints = {-5 , -1 , 0 })
183- void testSkipNoop (final int amountToSkip ) throws IOException {
183+ public void testSkipNoop (final int amountToSkip ) throws IOException {
184184 // setup
185185 final Path file = createTestFile (10 );
186186 final byte [] expectedData = Files .readAllBytes (file );
@@ -193,7 +193,7 @@ void testSkipNoop(final int amountToSkip) throws IOException {
193193 }
194194
195195 @ Test
196- void testSkipOutOfCurrentBuffer () throws IOException {
196+ public void testSkipOutOfCurrentBuffer () throws IOException {
197197 // setup
198198 final Path file = createTestFile (100 );
199199 final byte [] expectedData = Files .readAllBytes (file );
@@ -209,7 +209,7 @@ void testSkipOutOfCurrentBuffer() throws IOException {
209209 }
210210
211211 @ Test
212- void testSkipPastEof () throws IOException {
212+ public void testSkipPastEof () throws IOException {
213213 // setup
214214 final Path file = createTestFile (100 );
215215
@@ -223,7 +223,7 @@ void testSkipPastEof() throws IOException {
223223 }
224224
225225 @ Test
226- void testSkipToEndOfCurrentBuffer () throws IOException {
226+ public void testSkipToEndOfCurrentBuffer () throws IOException {
227227 // setup
228228 final Path file = createTestFile (100 );
229229 final byte [] expectedData = Files .readAllBytes (file );
@@ -239,7 +239,7 @@ void testSkipToEndOfCurrentBuffer() throws IOException {
239239 }
240240
241241 @ Test
242- void testSkipToEndOfCurrentBufferBuilder () throws IOException {
242+ public void testSkipToEndOfCurrentBufferBuilder () throws IOException {
243243 // setup
244244 final Path file = createTestFile (100 );
245245 final byte [] expectedData = Files .readAllBytes (file );
@@ -256,7 +256,7 @@ void testSkipToEndOfCurrentBufferBuilder() throws IOException {
256256 }
257257
258258 @ Test
259- void testSmallFileBuilder () throws IOException {
259+ public void testSmallFileBuilder () throws IOException {
260260 // setup
261261 final Path file = createTestFile (100 );
262262 final byte [] expectedData = Files .readAllBytes (file );
@@ -269,7 +269,7 @@ void testSmallFileBuilder() throws IOException {
269269 }
270270
271271 @ Test
272- void testSmallPath () throws IOException {
272+ public void testSmallPath () throws IOException {
273273 // setup
274274 final Path file = createTestFile (100 );
275275 final byte [] expectedData = Files .readAllBytes (file );
@@ -282,7 +282,7 @@ void testSmallPath() throws IOException {
282282 }
283283
284284 @ Test
285- void testSmallPathBuilder () throws IOException {
285+ public void testSmallPathBuilder () throws IOException {
286286 // setup
287287 final Path file = createTestFile (100 );
288288 final byte [] expectedData = Files .readAllBytes (file );
0 commit comments