CheneyYin commented on code in PR #5928:
URL: https://github.com/apache/seatunnel/pull/5928#discussion_r1434198865
##########
seatunnel-core/seatunnel-core-starter/src/test/java/org/apache/seatunnel/core/starter/utils/FileUtilsTest.java:
##########
@@ -50,6 +52,22 @@ public void getConfigPath() throws URISyntaxException {
"flink.batch.conf",
FileUtils.getConfigPath(sparkCommandArgs).toString());
}
+ @Test
+ void testExpectedError() {
+ String root = File.listRoots()[0].getPath();
+ // Unix Path: /tmp/not/existed
+ // Windows Path: C:\tmp\not\existed
+ Path path = Paths.get(root, "tmp", "not", "existed");
Review Comment:
```suggestion
String root = System.getProperty("java.io.tmpdir");
// Unix Path: /tmp/not/existed
// Windows Path:
%SystemDrive%\Users\<username>\AppData\Local\Temp\not\existed
Path path = Paths.get(root, "not", "existed");
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]