File tree Expand file tree Collapse file tree 4 files changed +22
-0
lines changed
resources/META-INF/native-image
shaded-integration-tests/src/test/resources/META-INF/native-image Expand file tree Collapse file tree 4 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 11package com .arangodb .config ;
22
3+ import org .graalvm .nativeimage .ImageInfo ;
4+ import org .junit .jupiter .api .BeforeAll ;
35import org .junit .jupiter .api .Test ;
46
57import static org .assertj .core .api .Assertions .assertThat ;
8+ import static org .junit .jupiter .api .Assumptions .assumeFalse ;
69
710class ConfigDefaultsTest {
811
12+ @ BeforeAll
13+ static void beforeClass () {
14+ assumeFalse (ImageInfo .inImageCode (), "skipped in native mode" );
15+ }
16+
917 @ Test
1018 void defaultValues () {
1119 ArangoConfigProperties config = ConfigUtils .loadConfigMP ("arangodb.properties" , "wrong" );
Original file line number Diff line number Diff line change 33import com .arangodb .Protocol ;
44import com .arangodb .entity .LoadBalancingStrategy ;
55import org .assertj .core .api .InstanceOfAssertFactories ;
6+ import org .graalvm .nativeimage .ImageInfo ;
7+ import org .junit .jupiter .api .BeforeAll ;
68import org .junit .jupiter .api .Test ;
79
810import static org .assertj .core .api .Assertions .assertThat ;
11+ import static org .junit .jupiter .api .Assumptions .assumeFalse ;
912
1013class ConfigTest {
1114 private final HostDescription hostA = new HostDescription ("aaa" , 1111 );
@@ -26,6 +29,11 @@ class ConfigTest {
2629 private final LoadBalancingStrategy loadBalancingStrategy = LoadBalancingStrategy .ROUND_ROBIN ;
2730 private final Integer responseQueueTimeSamples = 12345678 ;
2831
32+ @ BeforeAll
33+ static void beforeClass () {
34+ assumeFalse (ImageInfo .inImageCode (), "skipped in native mode" );
35+ }
36+
2937 @ Test
3038 void readConfig () {
3139 ArangoConfigProperties config = ConfigUtils .loadConfigMP ("arangodb-config-test.properties" , "adb" );
Original file line number Diff line number Diff line change 1010 {
1111 "pattern" : " \\ Qarangodb-bad2.properties\\ E"
1212 },
13+ {
14+ "pattern" :" \\ Qarangodb-with-prefix.properties\\ E"
15+ },
1316 {
1417 "pattern" : " \\ Qlogback-test.xml\\ E"
1518 },
Original file line number Diff line number Diff line change 1010 {
1111 "pattern" : " \\ Qarangodb-bad2.properties\\ E"
1212 },
13+ {
14+ "pattern" :" \\ Qarangodb-with-prefix.properties\\ E"
15+ },
1316 {
1417 "pattern" : " \\ Qlogback-test.xml\\ E"
1518 },
You can’t perform that action at this time.
0 commit comments