Skip to content

Commit 47cd358

Browse files
committed
test: include sample using graph
Signed-off-by: Otavio Santana <[email protected]>
1 parent c9b57ae commit 47cd358

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

jnosql-neo4j/src/test/java/org/eclipse/jnosql/databases/neo4j/mapping/Neo4jExtensionTest.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
package org.eclipse.jnosql.databases.neo4j.mapping;
1616

1717
import jakarta.inject.Inject;
18+
import org.eclipse.jnosql.mapping.Database;
19+
import org.eclipse.jnosql.mapping.DatabaseType;
1820
import org.eclipse.jnosql.mapping.core.Converters;
1921
import org.eclipse.jnosql.mapping.graph.GraphTemplate;
2022
import org.eclipse.jnosql.mapping.graph.spi.GraphExtension;
@@ -33,13 +35,17 @@
3335
@AddPackages(Reflections.class)
3436
public class Neo4jExtensionTest {
3537

36-
3738
@Inject
3839
private MusicRepository repository;
3940

4041
@Inject
42+
@Database(value = DatabaseType.GRAPH)
4143
private MusicStoreRepository repository2;
4244

45+
@Inject
46+
@Database(value = DatabaseType.GRAPH)
47+
private MusicStoreRepository repository3;
48+
4349
@Test
4450
public void shouldCreteNeo4j() {
4551
Assertions.assertNotNull(repository);
@@ -48,5 +54,6 @@ public void shouldCreteNeo4j() {
4854
@Test
4955
public void shouldCreteGraph() {
5056
Assertions.assertNotNull(repository2);
57+
Assertions.assertNotNull(repository3);
5158
}
5259
}

0 commit comments

Comments
 (0)