Skip to content

Commit b7bdd6e

Browse files
committed
creates tck test orientdb
1 parent 5908e99 commit b7bdd6e

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

orientdb-driver/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,26 @@
4848
<artifactId>diana-document</artifactId>
4949
<version>${project.version}</version>
5050
</dependency>
51+
<dependency>
52+
<groupId>jakarta.nosql.tck.communication.driver</groupId>
53+
<artifactId>driver-tck-document</artifactId>
54+
<version>${jakarta.nosql.version}</version>
55+
<scope>test</scope>
56+
</dependency>
5157
</dependencies>
58+
59+
<build>
60+
<plugins>
61+
<plugin>
62+
<groupId>org.apache.maven.plugins</groupId>
63+
<artifactId>maven-surefire-plugin</artifactId>
64+
<version>${maven.surefire.plugin.version}</version>
65+
<configuration>
66+
<dependenciesToScan>
67+
<dependency>jakarta.nosql.tck.communication.driver:driver-tck-document</dependency>
68+
</dependenciesToScan>
69+
</configuration>
70+
</plugin>
71+
</plugins>
72+
</build>
5273
</project>
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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.orientdb.document;
16+
17+
import jakarta.nosql.document.DocumentCollectionManager;
18+
import jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier;
19+
20+
public class OrientDBDocumentCollectionManagerSupplier implements DocumentCollectionManagerSupplier {
21+
22+
private static final String DATABASE = "tck-database";
23+
24+
@Override
25+
public DocumentCollectionManager get() {
26+
return DocumentConfigurationUtils.get().get(Database.DATABASE);
27+
}
28+
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.jnosql.diana.orientdb.document.OrientDBDocumentCollectionManagerSupplier
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

0 commit comments

Comments
 (0)