Skip to content

Commit

Permalink
Add assertion of 0 length File array in case of an empty String provi…
Browse files Browse the repository at this point in the history
…ded for String to File Array conversion
  • Loading branch information
stefanhahmann committed Jun 27, 2024
1 parent d476e5c commit 8dc4c0e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public void testStringToFileArrayConverter() {
conv.convert(path, File[].class)[0]);
assertEquals("Wrong file name", new File("C:\\temp"),
conv.convert(path, File[].class)[1]);
assertEquals( 0, conv.convert( "", File[].class ).length );
}

@Test
Expand Down

0 comments on commit 8dc4c0e

Please sign in to comment.