Skip to content

Commit a1fd31d

Browse files
authored
fix wrong usage of assertNotNull (#269)
Signature of assertNoNull() is taking "actual" as first parameter: public static void assertNotNull(Object actual, String message) { AssertNotNull.assertNotNull(actual, message); } Signed-off-by: Davide Angelocola <davide.angelocola@gmail.com>
1 parent 1e01f7e commit a1fd31d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public void testGetFreeSpace_String() throws Exception {
6363
boolean kilobyteBlock = true;
6464
try (BufferedReader r = new BufferedReader(new InputStreamReader(proc.getInputStream()))){
6565
final String line = r.readLine();
66-
assertNotNull("Unexpected null line", line);
66+
assertNotNull(line, "Unexpected null line");
6767
if (line.contains("512")) {
6868
kilobyteBlock = false;
6969
}

0 commit comments

Comments
 (0)