Skip to content

Commit 1d21aec

Browse files
committed
adds tck test at arangodb
1 parent 729c4ef commit 1d21aec

File tree

6 files changed

+45
-1
lines changed

6 files changed

+45
-1
lines changed

arangodb-driver/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@
5757
<version>${jakarta.nosql.version}</version>
5858
<scope>test</scope>
5959
</dependency>
60+
<dependency>
61+
<groupId>jakarta.nosql.tck.communication.driver</groupId>
62+
<artifactId>driver-tck-document</artifactId>
63+
<version>${jakarta.nosql.version}</version>
64+
<scope>test</scope>
65+
</dependency>
6066
</dependencies>
6167

6268
<build>
@@ -68,6 +74,7 @@
6874
<configuration>
6975
<dependenciesToScan>
7076
<dependency>jakarta.nosql.tck.communication.driver:driver-tck-key-value</dependency>
77+
<dependency>jakarta.nosql.tck.communication.driver:driver-tck-document</dependency>
7178
</dependenciesToScan>
7279
</configuration>
7380
</plugin>

arangodb-driver/src/main/java/org/eclipse/jnosql/diana/arangodb/document/ArangoDBDocumentCollectionManagerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import com.arangodb.ArangoDB;
1919
import jakarta.nosql.document.DocumentCollectionManagerFactory;
2020

21-
final class ArangoDBDocumentCollectionManagerFactory implements DocumentCollectionManagerFactory{
21+
final class ArangoDBDocumentCollectionManagerFactory implements DocumentCollectionManagerFactory {
2222

2323

2424
private final ArangoDB arangoDB;
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright (c) 2020 Otávio Santana and others
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* and Apache License v2.0 which accompanies this distribution.
6+
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
7+
* and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
8+
*
9+
* You may elect to redistribute this code under either of these licenses.
10+
*
11+
* Contributors:
12+
*
13+
* Otavio Santana
14+
*/
15+
package org.eclipse.jnosql.diana.arangodb.document;
16+
17+
import jakarta.nosql.document.DocumentCollectionManager;
18+
import jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier;
19+
20+
import static org.eclipse.jnosql.diana.arangodb.document.ArangoDBDocumentCollectionManagerFactorySupplier.INSTANCE;
21+
22+
public class ArangoDBDocumentCollectionManagerSupplier implements DocumentCollectionManagerSupplier {
23+
24+
private static final String DATABASE = "tck-database";
25+
26+
@Override
27+
public DocumentCollectionManager get() {
28+
return INSTANCE.get().get(DATABASE);
29+
}
30+
31+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
query.1=insert person {"_id": 1, "name": "Diana"}
2+
id.name=_id
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
query.1=insert person {"_id": 1, "name": "Diana"}
2+
query.2=insert person {"_id": 2, "name": "Artemis"}
3+
id.name=_id
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.jnosql.diana.arangodb.document.ArangoDBDocumentCollectionManagerSupplier

0 commit comments

Comments
 (0)