You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Davide Angelocola (Jira)" <ji...@apache.org> on 2021/09/01 18:24:00 UTC

[jira] [Updated] (IO-745) wrong assertNotNull

     [ https://issues.apache.org/jira/browse/IO-745?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davide Angelocola updated IO-745:
---------------------------------
    Attachment: 0001-fix-wrong-usage-of-assertNotNull.patch

> wrong assertNotNull 
> --------------------
>
>                 Key: IO-745
>                 URL: https://issues.apache.org/jira/browse/IO-745
>             Project: Commons IO
>          Issue Type: Test
>    Affects Versions: 2.11.0
>            Reporter: Davide Angelocola
>            Priority: Minor
>         Attachments: 0001-fix-wrong-usage-of-assertNotNull.patch
>
>
> Greetings from long time user of this library :)
> Intellij spotted this small error in *LineIteratorTestCase*:
> {code:java}
> assertNotNull("Line expected", iterator.next());
> assertTrue(iterator.hasNext(), "More expected"); {code}
> *assertNotNull* is using "Line expected" as actual parameter.
> The right order is given in the next *assertTrue* method.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)