File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/io/file Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments