Skip to content

Commit a64b4cc

Browse files
IOUtilsTestCase#testToByteArray_InputStream_NegativeSize: fix typo
1 parent 41a3e9c commit a64b4cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/java/org/apache/commons/io/IOUtilsTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ public synchronized void close() throws IOException {
904904

905905
try (FileInputStream fin = new FileInputStream(m_testFile)) {
906906
IOUtils.toByteArray(fin, -1);
907-
fail("IllegalArgumentException excepted");
907+
fail("IllegalArgumentException expected");
908908
} catch (final IllegalArgumentException exc) {
909909
assertTrue("Exception message does not start with \"Size must be equal or greater than zero\"", exc
910910
.getMessage().startsWith("Size must be equal or greater than zero"));

0 commit comments

Comments
 (0)