File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
ravendb-driver/src/test/java/org/jnosql/diana/ravendb/document Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1919import org .jnosql .diana .api .document .DocumentCollectionManagerFactory ;
2020import org .jnosql .diana .api .document .DocumentConfiguration ;
2121
22- public final class DocumentConfigurationUtils {
22+ import java . util . function . Supplier ;
2323
24- private DocumentConfigurationUtils () {}
24+ public enum DocumentConfigurationUtils implements Supplier < DocumentCollectionManagerFactory > {
2525
26- public static DocumentCollectionManagerFactory get () {
26+ INSTANCE ;
27+
28+ public DocumentCollectionManagerFactory get () {
2729 DocumentConfiguration configuration = new RavenDBDocumentConfiguration ();
2830 return configuration .get ();
2931 }
Original file line number Diff line number Diff line change 4545import static org .hamcrest .Matchers .not ;
4646import static org .jnosql .diana .api .document .query .DocumentQueryBuilder .delete ;
4747import static org .jnosql .diana .api .document .query .DocumentQueryBuilder .select ;
48- import static org .jnosql .diana .ravendb .document .DocumentConfigurationUtils .get ;
4948import static org .junit .jupiter .api .Assertions .assertEquals ;
5049import static org .junit .jupiter .api .Assertions .assertFalse ;
5150import static org .junit .jupiter .api .Assertions .assertNotNull ;
@@ -60,7 +59,7 @@ public class RavenDBDocumentCollectionManagerTest {
6059
6160 @ BeforeAll
6261 public static void setUp () throws IOException {
63- entityManager = get ().get ("database" );
62+ entityManager = DocumentConfigurationUtils . INSTANCE . get ().get ("database" );
6463 }
6564
6665 @ BeforeEach
You can’t perform that action at this time.
0 commit comments