Skip to content

Commit bb01783

Browse files
author
Lukasz Rys
committed
[ BAEL-3322 ] : Change naming, add final
1 parent ba4c759 commit bb01783

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

testing-modules/mocks/src/main/java/com/baeldung/jimfs/FilePathReader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
import java.nio.file.Path;
66

77
class FilePathReader {
8-
String getSystemPath(Path path) {
8+
9+
String getSystemPath(final Path path) {
910
try {
1011
return path
1112
.toRealPath()
1213
.toString();
13-
} catch (IOException ex) {
14+
} catch (final IOException ex) {
1415
throw new UncheckedIOException(ex);
1516
}
1617
}

testing-modules/mocks/src/test/java/com/baeldung/jimfs/FileRepositoryUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void givenWindowsSystem_whenUpdatingFile_thenContentHasChanged() throws Exceptio
5555

5656
@Test
5757
@DisplayName("Should delete file")
58-
void givenRandomSystem_whenDeletingFile_thenFileHasBeenDeleted() throws Exception {
58+
void givenCurrentSystem_whenDeletingFile_thenFileHasBeenDeleted() throws Exception {
5959
final FileSystem fileSystem = Jimfs.newFileSystem();
6060
final Path resourceFilePath = fileSystem.getPath(RESOURCE_FILE_NAME);
6161
Files.copy(getResourceFilePath(), resourceFilePath);

0 commit comments

Comments
 (0)