File tree Expand file tree Collapse file tree 5 files changed +43
-12
lines changed
java/org/lfenergy/compas/scl/data/rest
test/java/org/lfenergy/compas/scl/data/rest Expand file tree Collapse file tree 5 files changed +43
-12
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ SPDX-License-Identifier: Apache-2.0
161
161
<quarkus .package.type>native</quarkus .package.type>
162
162
<!-- Allows for creating a Linux executable without GraalVM being installed -->
163
163
<quarkus .native.container-build>true</quarkus .native.container-build>
164
- <quarkus .native.additional-build-args>-H:ReflectionConfigurationFiles=reflection-config.json</quarkus .native.additional-build-args>
165
164
</properties >
166
165
167
166
<build >
Original file line number Diff line number Diff line change
1
+ // SPDX-FileCopyrightText: 2021 Alliander N.V.
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ package org .lfenergy .compas .scl .data .rest ;
5
+
6
+ import io .quarkus .runtime .annotations .RegisterForReflection ;
7
+
8
+ /**
9
+ * Configure class for Quarkus Native Build to be included.
10
+ */
11
+ @ RegisterForReflection (
12
+ targets = {
13
+ org .lfenergy .compas .core .jaxrs .model .ErrorMessage .class ,
14
+ org .lfenergy .compas .core .jaxrs .model .ErrorResponse .class ,
15
+ org .lfenergy .compas .scl .data .model .SclMetaInfo .class ,
16
+ org .lfenergy .compas .scl .data .model .ObjectFactory .class
17
+ })
18
+ public class CompasReflectionConfiguration {
19
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // SPDX-FileCopyrightText: 2021 Alliander N.V.
2
+ //
3
+ // SPDX-License-Identifier: Apache-2.0
4
+ package org .lfenergy .compas .scl .data .rest ;
5
+
6
+ import org .junit .jupiter .api .Test ;
7
+
8
+ import static org .junit .jupiter .api .Assertions .assertNotNull ;
9
+
10
+ class CompasReflectionConfigurationTest {
11
+ @ Test
12
+ void constructor_WhenCalled_ThenNoExceptions () {
13
+ var config = new CompasReflectionConfiguration ();
14
+ assertNotNull (config );
15
+ }
16
+ }
Original file line number Diff line number Diff line change 8
8
import static org .junit .jupiter .api .Assertions .assertNotNull ;
9
9
10
10
class CompasSclDataServiceConfigurationTest {
11
- private CompasSclDataServiceConfiguration configuration = new CompasSclDataServiceConfiguration ();
11
+ @ Test
12
+ void constructor_WhenCalled_ThenNoExceptions () {
13
+ var config = new CompasSclDataServiceConfiguration ();
14
+ assertNotNull (config );
15
+ }
12
16
13
17
@ Test
14
18
void createElementConverter_WhenCalled_ThenObjectReturned () {
15
- assertNotNull (configuration .createElementConverter ());
19
+ assertNotNull (new CompasSclDataServiceConfiguration () .createElementConverter ());
16
20
}
17
21
18
22
@ Test
19
23
void creatSclElementProcessor_WhenCalled_ThenObjectReturned () {
20
- assertNotNull (configuration .creatSclElementProcessor ());
24
+ assertNotNull (new CompasSclDataServiceConfiguration () .creatSclElementProcessor ());
21
25
}
22
26
23
27
@ Test
24
28
void createSclDataModelMarshaller_WhenCalled_ThenObjectReturned () {
25
- assertNotNull (configuration .createSclDataModelMarshaller ());
29
+ assertNotNull (new CompasSclDataServiceConfiguration () .createSclDataModelMarshaller ());
26
30
}
27
31
}
You can’t perform that action at this time.
0 commit comments