File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
jnosql-neo4j/src/test/java/org/eclipse/jnosql/databases/neo4j/mapping Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1515package org .eclipse .jnosql .databases .neo4j .mapping ;
1616
1717import jakarta .inject .Inject ;
18+ import org .eclipse .jnosql .mapping .Database ;
19+ import org .eclipse .jnosql .mapping .DatabaseType ;
1820import org .eclipse .jnosql .mapping .core .Converters ;
1921import org .eclipse .jnosql .mapping .graph .GraphTemplate ;
2022import org .eclipse .jnosql .mapping .graph .spi .GraphExtension ;
3335@ AddPackages (Reflections .class )
3436public 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}
You can’t perform that action at this time.
0 commit comments