Skip to content

Commit 9eef094

Browse files
committed
Split test
1 parent b6092f6 commit 9eef094

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

src/test/java/org/apache/commons/io/file/FilesUncheckTest.java

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -364,19 +364,22 @@ void testNewOutputStream() {
364364

365365
@Test
366366
void testProbeContentType() {
367-
// Empty file:
368-
String probeContentType = FilesUncheck.probeContentType(FILE_PATH_EMPTY);
369-
// Empirical: probeContentType is null on Windows
370-
// Empirical: probeContentType is "text/plain" on Ubuntu
371-
// Empirical: probeContentType is ? on macOS
372-
//
373367
// BOM file:
374-
probeContentType = FilesUncheck.probeContentType(Paths.get("src/test/resources/org/apache/commons/io/testfileBOM.xml"));
368+
FilesUncheck.probeContentType(Paths.get("src/test/resources/org/apache/commons/io/testfileBOM.xml"));
375369
// Empirical: probeContentType is "text/plain" on Windows
376370
// Empirical: probeContentType is "application/plain" on Ubuntu
377371
// Empirical: probeContentType is ? on macOS
378372
}
379373

374+
@Test
375+
void testProbeContentTypeEmpty() {
376+
// Empty file:
377+
FilesUncheck.probeContentType(FILE_PATH_EMPTY);
378+
// Empirical: probeContentType is null on Windows
379+
// Empirical: probeContentType is "text/plain" on Ubuntu
380+
// Empirical: probeContentType is ? on macOS
381+
}
382+
380383
@Test
381384
void testReadAllBytes() {
382385
assertArrayEquals(ArrayUtils.EMPTY_BYTE_ARRAY, FilesUncheck.readAllBytes(FILE_PATH_EMPTY));

0 commit comments

Comments
 (0)