Skip to content

Commit c2999a5

Browse files
author
Dennis Labordus
committed
Added Test for Sonar.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 8803a37 commit c2999a5

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package org.lfenergy.compas.scl.data.rest;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
class CompasReflectionConfigurationTest {
6+
@Test
7+
void constructor_WhenCalled_ThenNoExceptions() {
8+
new CompasReflectionConfiguration();
9+
}
10+
}

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,23 @@
88
import static org.junit.jupiter.api.Assertions.assertNotNull;
99

1010
class CompasSclDataServiceConfigurationTest {
11-
private CompasSclDataServiceConfiguration configuration = new CompasSclDataServiceConfiguration();
11+
@Test
12+
void constructor_WhenCalled_ThenNoExceptions() {
13+
new CompasSclDataServiceConfiguration();
14+
}
1215

1316
@Test
1417
void createElementConverter_WhenCalled_ThenObjectReturned() {
15-
assertNotNull(configuration.createElementConverter());
18+
assertNotNull(new CompasSclDataServiceConfiguration().createElementConverter());
1619
}
1720

1821
@Test
1922
void creatSclElementProcessor_WhenCalled_ThenObjectReturned() {
20-
assertNotNull(configuration.creatSclElementProcessor());
23+
assertNotNull(new CompasSclDataServiceConfiguration().creatSclElementProcessor());
2124
}
2225

2326
@Test
2427
void createSclDataModelMarshaller_WhenCalled_ThenObjectReturned() {
25-
assertNotNull(configuration.createSclDataModelMarshaller());
28+
assertNotNull(new CompasSclDataServiceConfiguration().createSclDataModelMarshaller());
2629
}
2730
}

0 commit comments

Comments
 (0)