Why the following line of Java code
Objects.equals(Files.probeContentType(file.toPath()), "text/csv")
always returns true
if file
has csv extension but non-csv content?
Maybe, the csv content is any text?
How can I define a file with csv extension but non-csv content to do a proper unit test?
Aucun commentaire:
Enregistrer un commentaire