1+ /*
2+ * Copyright (c) 2025 Contributors to the Eclipse Foundation
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 .databases .neo4j .mapping ;
16+
17+ import jakarta .inject .Inject ;
18+ import org .eclipse .jnosql .mapping .core .Converters ;
19+ import org .eclipse .jnosql .mapping .core .spi .EntityMetadataExtension ;
20+ import org .eclipse .jnosql .mapping .reflection .Reflections ;
21+ import org .eclipse .jnosql .mapping .semistructured .EntityConverter ;
22+ import org .jboss .weld .junit5 .auto .AddExtensions ;
23+ import org .jboss .weld .junit5 .auto .AddPackages ;
24+ import org .jboss .weld .junit5 .auto .EnableAutoWeld ;
25+ import org .junit .jupiter .api .Assertions ;
26+ import org .junit .jupiter .api .Test ;
27+
28+ @ EnableAutoWeld
29+ @ AddPackages (value = {Converters .class , Neo4JRepository .class , EntityConverter .class })
30+ @ AddExtensions ({EntityMetadataExtension .class , Neo4JExtension .class })
31+ @ AddPackages (Reflections .class )
32+ public class CassandraExtensionTest {
33+
34+
35+ @ Inject
36+ private MusicRepository repository ;
37+
38+ @ Test
39+ public void shouldCreteNeo4j () {
40+ Assertions .assertNotNull (repository );
41+ }
42+ }
0 commit comments