Skip to content

Commit e417ada

Browse files
author
Dennis Labordus
committed
Fixed code smell from Sonar.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent e77b29f commit e417ada

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

riseclipse/validator-riseclipse/src/test/java/org/lfenergy/compas/scl/validator/impl/OclFileLoaderTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ void constructor_WhenCalledWithUnCreatableDirectory_ThenExceptionThrown() {
5353
unCreatablePath = Path.of("C:/Windows/some-directory");
5454
}
5555

56+
List<URI> fileList = List.of();
5657
var directoryPath = unCreatablePath;
57-
var exception = assertThrows(SclValidatorException.class,
58-
() -> new OclFileLoader(directoryPath, List.of()));
58+
var exception = assertThrows(SclValidatorException.class, () -> new OclFileLoader(directoryPath, fileList));
5959

6060
assertEquals(CREATE_OCL_TEMP_DIR_FAILED, exception.getErrorCode());
6161
}
@@ -67,9 +67,9 @@ void constructor_WhenCalledWithUnCreatableTempFile_ThenExceptionThrown() {
6767
unWritablePath = Path.of("C:/Windows");
6868
}
6969

70+
List<URI> fileList = List.of();
7071
var directoryPath = unWritablePath;
71-
var exception = assertThrows(SclValidatorException.class,
72-
() -> new OclFileLoader(directoryPath, List.of()));
72+
var exception = assertThrows(SclValidatorException.class, () -> new OclFileLoader(directoryPath, fileList));
7373

7474
assertEquals(CREATE_OCL_TEMP_FILES_FAILED, exception.getErrorCode());
7575
}

0 commit comments

Comments
 (0)