Skip to content

Commit 9932f31

Browse files
author
Rob Tjalma
committed
Added IT tests
Signed-off-by: Rob Tjalma <[email protected]>
1 parent 7315e87 commit 9932f31

File tree

4 files changed

+37
-13
lines changed

4 files changed

+37
-13
lines changed

app/src/native-test/java/org/lfenergy/compas/scl/data/NativeHealthCheckIT.java

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-FileCopyrightText: 2021 Alliander N.V.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
package org.lfenergy.compas.scl.data;
6+
7+
import io.quarkus.test.junit.NativeImageTest;
8+
import org.lfenergy.compas.scl.data.rest.HealthCheckTest;
9+
10+
@NativeImageTest
11+
class NativeHealthCheckIT extends HealthCheckTest {
12+
// Execute the same tests but in native mode.
13+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import static io.restassured.RestAssured.given;
1010

1111
@QuarkusTest
12-
class HealthCheckTest {
12+
public class HealthCheckTest {
1313
@Test
1414
void testLivenessEndpoint() {
1515
given()

pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,29 @@ SPDX-License-Identifier: Apache-2.0
306306
<quarkus.package.type>native</quarkus.package.type>
307307
<quarkus.native.additional-build-args>-H:ReflectionConfigurationFiles=reflection-config.json</quarkus.native.additional-build-args>
308308
</properties>
309+
<build>
310+
<plugins>
311+
<plugin>
312+
<artifactId>maven-failsafe-plugin</artifactId>
313+
<version>${surefire-plugin.version}</version>
314+
<executions>
315+
<execution>
316+
<goals>
317+
<goal>integration-test</goal>
318+
<goal>verify</goal>
319+
</goals>
320+
<configuration>
321+
<systemPropertyVariables>
322+
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
323+
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
324+
<maven.home>${maven.home}</maven.home>
325+
</systemPropertyVariables>
326+
</configuration>
327+
</execution>
328+
</executions>
329+
</plugin>
330+
</plugins>
331+
</build>
309332
</profile>
310333
</profiles>
311334
</project>

0 commit comments

Comments
 (0)