File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
testing-modules/mocks/src
main/java/com/baeldung/jimfs
test/java/com/baeldung/jimfs Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
import java .nio .file .Path ;
6
6
7
7
class FilePathReader {
8
- String getSystemPath (Path path ) {
8
+
9
+ String getSystemPath (final Path path ) {
9
10
try {
10
11
return path
11
12
.toRealPath ()
12
13
.toString ();
13
- } catch (IOException ex ) {
14
+ } catch (final IOException ex ) {
14
15
throw new UncheckedIOException (ex );
15
16
}
16
17
}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ void givenWindowsSystem_whenUpdatingFile_thenContentHasChanged() throws Exceptio
55
55
56
56
@ Test
57
57
@ DisplayName ("Should delete file" )
58
- void givenRandomSystem_whenDeletingFile_thenFileHasBeenDeleted () throws Exception {
58
+ void givenCurrentSystem_whenDeletingFile_thenFileHasBeenDeleted () throws Exception {
59
59
final FileSystem fileSystem = Jimfs .newFileSystem ();
60
60
final Path resourceFilePath = fileSystem .getPath (RESOURCE_FILE_NAME );
61
61
Files .copy (getResourceFilePath (), resourceFilePath );
You can’t perform that action at this time.
0 commit comments