File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
driver/src/test/java/com/arangodb/config Expand file tree Collapse file tree 2 files changed +4
-16
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 ;
53import org .junit .jupiter .api .Test ;
4+ import org .junit .jupiter .api .condition .DisabledInNativeImage ;
65
76import static org .assertj .core .api .Assertions .assertThat ;
8- import static org .junit .jupiter .api .Assumptions .assumeFalse ;
97
8+ @ DisabledInNativeImage
109class ConfigDefaultsTest {
1110
12- @ BeforeAll
13- static void beforeClass () {
14- assumeFalse (ImageInfo .inImageCode (), "skipped in native mode" );
15- }
16-
1711 @ Test
1812 void defaultValues () {
1913 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 ;
86import org .junit .jupiter .api .Test ;
7+ import org .junit .jupiter .api .condition .DisabledInNativeImage ;
98
109import static org .assertj .core .api .Assertions .assertThat ;
11- import static org .junit .jupiter .api .Assumptions .assumeFalse ;
1210
11+ @ DisabledInNativeImage
1312class ConfigTest {
1413 private final HostDescription hostA = new HostDescription ("aaa" , 1111 );
1514 private final HostDescription hostB = new HostDescription ("bbb" , 2222 );
@@ -29,11 +28,6 @@ class ConfigTest {
2928 private final LoadBalancingStrategy loadBalancingStrategy = LoadBalancingStrategy .ROUND_ROBIN ;
3029 private final Integer responseQueueTimeSamples = 12345678 ;
3130
32- @ BeforeAll
33- static void beforeClass () {
34- assumeFalse (ImageInfo .inImageCode (), "skipped in native mode" );
35- }
36-
3731 @ Test
3832 void readConfig () {
3933 ArangoConfigProperties config = ConfigUtils .loadConfigMP ("arangodb-config-test.properties" , "adb" );
You can’t perform that action at this time.
0 commit comments