You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently tests will fail on Windows systems (maybe others) because of path errors such as:
[ERROR] PgJsonFileCreateControllerTest.createDirectorViaUpload:71 »
InvalidPath Illegal char <:> at index 2: /F:/GitHubRepos/db2rest/api-rest/target/test-classes/testdata/director.json
This is because we're not agnostic enough for the filesystem through java.nio methods.
According to docs for java.nio.file.Path.of(), we should be agnostic of filesystems since we are providing a library, and instead use an existing Path instance as an anchor as explained:
The Path is obtained by invoking the getPath method of the default FileSystem.
Note that while this method is very convenient, using it will imply an assumed reference to the default FileSystem and limit the utility of the calling code. Hence it should not be used in library code intended for flexible reuse. A more flexible alternative is to use an existing Path instance as an anchor, such as:
Path dir = ...
Path path = dir.resolve("file");
The text was updated successfully, but these errors were encountered:
Currently tests will fail on Windows systems (maybe others) because of path errors such as:
This is because we're not agnostic enough for the filesystem through java.nio methods.
According to docs for
java.nio.file.Path.of()
, we should be agnostic of filesystems since we are providing a library, and instead use an existingPath
instance as an anchor as explained:The text was updated successfully, but these errors were encountered: