Skip to content

Commit 2d2b1e2

Browse files
committed
creates test to solr
1 parent b032b92 commit 2d2b1e2

File tree

4 files changed

+54
-1
lines changed

4 files changed

+54
-1
lines changed

solr-driver/pom.xml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,28 @@
3939
<dependency>
4040
<groupId>org.apache.solr</groupId>
4141
<artifactId>solr-solrj</artifactId>
42-
<version>8.4.1</version>
42+
<version>8.5.1</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>jakarta.nosql.tck.communication.driver</groupId>
46+
<artifactId>driver-tck-document</artifactId>
47+
<version>${jakarta.nosql.version}</version>
48+
<scope>test</scope>
4349
</dependency>
4450
</dependencies>
51+
52+
<build>
53+
<plugins>
54+
<plugin>
55+
<groupId>org.apache.maven.plugins</groupId>
56+
<artifactId>maven-surefire-plugin</artifactId>
57+
<version>${maven.surefire.plugin.version}</version>
58+
<configuration>
59+
<dependenciesToScan>
60+
<dependency>jakarta.nosql.tck.communication.driver:driver-tck-document</dependency>
61+
</dependenciesToScan>
62+
</configuration>
63+
</plugin>
64+
</plugins>
65+
</build>
4566
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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.solr.document;
16+
17+
import jakarta.nosql.document.DocumentCollectionManager;
18+
import jakarta.nosql.tck.communication.driver.document.DocumentCollectionManagerSupplier;
19+
20+
public class SolrDocumentCollectionManagerSupplier implements DocumentCollectionManagerSupplier {
21+
22+
23+
@Override
24+
public DocumentCollectionManager get() {
25+
return ManagerFactorySupplier.INSTANCE.get("database");
26+
}
27+
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org.eclipse.jnosql.diana.solr.document.SolrDocumentCollectionManagerSupplier
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)