Skip to content

Commit 9c24a25

Browse files
committed
adds couchbase tck test
1 parent fbcdae7 commit 9c24a25

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

couchdb-driver/pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,25 @@
4949
<version>1.8.0-beta4</version>
5050
<scope>test</scope>
5151
</dependency>
52+
<dependency>
53+
<groupId>jakarta.nosql.tck.communication.driver</groupId>
54+
<artifactId>driver-tck-document</artifactId>
55+
<version>${jakarta.nosql.version}</version>
56+
<scope>test</scope>
57+
</dependency>
5258
</dependencies>
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>
5373
</project>
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.couchdb.document;
16+
17+
import jakarta.nosql.document.DocumentCollectionManager;
18+
import jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier;
19+
import org.eclipse.jnosql.diana.couchdb.document.configuration.CouchDBDocumentTcConfiguration;
20+
21+
public class CouchDBDocumentCollectionManagerSupplier implements DocumentCollectionManagerSupplier {
22+
23+
private static final String DATABASE = "tck-database";
24+
25+
@Override
26+
public DocumentCollectionManager get() {
27+
final CouchDBDocumentCollectionManagerFactory factory = CouchDBDocumentTcConfiguration.INSTANCE.get();
28+
return factory.get(DATABASE);
29+
}
30+
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.jnosql.diana.couchdb.document.CouchDBDocumentCollectionManagerSupplier
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)