We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2c3617 commit e0f97afCopy full SHA for e0f97af
src/test/java/org/apache/commons/cli/TypeHandlerTest.java
@@ -41,6 +41,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
41
import java.util.Map;
42
import java.util.stream.Stream;
43
44
+import org.apache.commons.io.FileUtils;
45
import org.apache.commons.io.IOUtils;
46
import org.junit.jupiter.api.Test;
47
import org.junit.jupiter.params.ParameterizedTest;
@@ -184,7 +185,7 @@ void testCreateDate(final Date date) {
184
185
186
@Test
187
void testCreateFile() {
- final File file = new File("").getAbsoluteFile();
188
+ final File file = FileUtils.current().getAbsoluteFile();
189
assertEquals(file, TypeHandler.createFile(file.toString()));
190
}
191
0 commit comments