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