Skip to content

Commit 650430f

Browse files
author
Achim Brandt
committed
changed test for ArangoDB 3
1 parent 976b64b commit 650430f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/java/com/arangodb/ArangoDriverAdminTest.java

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
import static org.hamcrest.CoreMatchers.not;
2121
import static org.hamcrest.CoreMatchers.notNullValue;
2222
import static org.hamcrest.CoreMatchers.startsWith;
23+
import static org.junit.Assert.assertEquals;
2324
import static org.junit.Assert.assertNotNull;
2425
import static org.junit.Assert.assertThat;
26+
import static org.junit.Assert.assertTrue;
2527
import static org.junit.Assert.fail;
2628

2729
import org.junit.Test;
@@ -52,9 +54,9 @@ public ArangoDriverAdminTest(ArangoConfigure configure, ArangoDriver driver) {
5254
public void test_version() throws ArangoException {
5355

5456
ArangoVersion version = driver.getVersion();
55-
assertThat(version.getServer(), is("arango"));
56-
assertThat(version.getVersion(), startsWith("2."));
57-
57+
assertEquals("arango", version.getServer());
58+
assertNotNull(version.getVersion());
59+
assertTrue(version.getVersion().startsWith("2.") || version.getVersion().startsWith("3."));
5860
}
5961

6062
@Test

0 commit comments

Comments
 (0)