@@ -17,7 +17,7 @@ class FileRepositoryUnitTest implements FileTestProvider {
17
17
18
18
@ Test
19
19
@ DisplayName ("Should create a file on a file system" )
20
- void shouldCreateFile () {
20
+ void givenUnixSystem_whenCreatingFile_thenCreatedInPath () {
21
21
final FileSystem fileSystem = Jimfs .newFileSystem (Configuration .unix ());
22
22
final String fileName = "newFile.txt" ;
23
23
final Path pathToStore = fileSystem .getPath ("" );
@@ -29,7 +29,7 @@ void shouldCreateFile() {
29
29
30
30
@ Test
31
31
@ DisplayName ("Should read the content of the file" )
32
- void shouldReadFileContent_thenReturnIt () throws Exception {
32
+ void givenOSXSystem_whenReadingFile_thenContentIsReturned () throws Exception {
33
33
final FileSystem fileSystem = Jimfs .newFileSystem (Configuration .osX ());
34
34
final Path resourceFilePath = fileSystem .getPath (RESOURCE_FILE_NAME );
35
35
Files .copy (getResourceFilePath (), resourceFilePath );
@@ -41,7 +41,7 @@ void shouldReadFileContent_thenReturnIt() throws Exception {
41
41
42
42
@ Test
43
43
@ DisplayName ("Should update the content of the file" )
44
- void shouldUpdateContentOfTheFile () throws Exception {
44
+ void givenWindowsSystem_whenUpdatingFile_thenContentHasChanged () throws Exception {
45
45
final FileSystem fileSystem = Jimfs .newFileSystem (Configuration .windows ());
46
46
final Path resourceFilePath = fileSystem .getPath (RESOURCE_FILE_NAME );
47
47
Files .copy (getResourceFilePath (), resourceFilePath );
@@ -55,7 +55,7 @@ void shouldUpdateContentOfTheFile() throws Exception {
55
55
56
56
@ Test
57
57
@ DisplayName ("Should delete file" )
58
- void shouldDeleteFile () throws Exception {
58
+ void givenRandomSystem_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 );
0 commit comments