Skip to content

Commit 8a97d94

Browse files
author
Dennis Labordus
committed
Added Test for Sonar.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 6ac56ff commit 8a97d94

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/src/test/java/org/lfenergy/compas/scl/data/rest/CompasReflectionConfigurationTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@
55

66
import org.junit.jupiter.api.Test;
77

8+
import static org.junit.jupiter.api.Assertions.assertNotNull;
9+
810
class CompasReflectionConfigurationTest {
911
@Test
1012
void constructor_WhenCalled_ThenNoExceptions() {
11-
new CompasReflectionConfiguration();
13+
var config = new CompasReflectionConfiguration();
14+
assertNotNull(config);
1215
}
1316
}

app/src/test/java/org/lfenergy/compas/scl/data/rest/CompasSclDataServiceConfigurationTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
class CompasSclDataServiceConfigurationTest {
1111
@Test
1212
void constructor_WhenCalled_ThenNoExceptions() {
13-
new CompasSclDataServiceConfiguration();
13+
var config = new CompasSclDataServiceConfiguration();
14+
assertNotNull(config);
1415
}
1516

1617
@Test

0 commit comments

Comments
 (0)