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 1
1
package com .arangodb .config ;
2
2
3
+ import org .graalvm .nativeimage .ImageInfo ;
4
+ import org .junit .jupiter .api .BeforeAll ;
3
5
import org .junit .jupiter .api .Test ;
4
6
5
7
import static org .assertj .core .api .Assertions .assertThat ;
8
+ import static org .junit .jupiter .api .Assumptions .assumeFalse ;
6
9
7
10
class ConfigDefaultsTest {
8
11
12
+ @ BeforeAll
13
+ static void beforeClass () {
14
+ assumeFalse (ImageInfo .inImageCode (), "skipped in native mode" );
15
+ }
16
+
9
17
@ Test
10
18
void defaultValues () {
11
19
ArangoConfigProperties config = ConfigUtils .loadConfigMP ("arangodb.properties" , "wrong" );
Original file line number Diff line number Diff line change 3
3
import com .arangodb .Protocol ;
4
4
import com .arangodb .entity .LoadBalancingStrategy ;
5
5
import org .assertj .core .api .InstanceOfAssertFactories ;
6
+ import org .graalvm .nativeimage .ImageInfo ;
7
+ import org .junit .jupiter .api .BeforeAll ;
6
8
import org .junit .jupiter .api .Test ;
7
9
8
10
import static org .assertj .core .api .Assertions .assertThat ;
11
+ import static org .junit .jupiter .api .Assumptions .assumeFalse ;
9
12
10
13
class ConfigTest {
11
14
private final HostDescription hostA = new HostDescription ("aaa" , 1111 );
@@ -26,6 +29,11 @@ class ConfigTest {
26
29
private final LoadBalancingStrategy loadBalancingStrategy = LoadBalancingStrategy .ROUND_ROBIN ;
27
30
private final Integer responseQueueTimeSamples = 12345678 ;
28
31
32
+ @ BeforeAll
33
+ static void beforeClass () {
34
+ assumeFalse (ImageInfo .inImageCode (), "skipped in native mode" );
35
+ }
36
+
29
37
@ Test
30
38
void readConfig () {
31
39
ArangoConfigProperties config = ConfigUtils .loadConfigMP ("arangodb-config-test.properties" , "adb" );
Original file line number Diff line number Diff line change 10
10
{
11
11
"pattern" : " \\ Qarangodb-bad2.properties\\ E"
12
12
},
13
+ {
14
+ "pattern" :" \\ Qarangodb-with-prefix.properties\\ E"
15
+ },
13
16
{
14
17
"pattern" : " \\ Qlogback-test.xml\\ E"
15
18
},
Original file line number Diff line number Diff line change 10
10
{
11
11
"pattern" : " \\ Qarangodb-bad2.properties\\ E"
12
12
},
13
+ {
14
+ "pattern" :" \\ Qarangodb-with-prefix.properties\\ E"
15
+ },
13
16
{
14
17
"pattern" : " \\ Qlogback-test.xml\\ E"
15
18
},
You can’t perform that action at this time.
0 commit comments