diff --git a/artemis/artemis-configuration/src/test/java/org/eclipse/jnosql/artemis/configuration/document/DocumentCollectionManagerAsyncConverterTest.java b/artemis/artemis-configuration/src/test/java/org/eclipse/jnosql/artemis/configuration/document/DocumentCollectionManagerAsyncConverterTest.java index 486f2fb5f..c0ffab861 100644 --- a/artemis/artemis-configuration/src/test/java/org/eclipse/jnosql/artemis/configuration/document/DocumentCollectionManagerAsyncConverterTest.java +++ b/artemis/artemis-configuration/src/test/java/org/eclipse/jnosql/artemis/configuration/document/DocumentCollectionManagerAsyncConverterTest.java @@ -17,6 +17,7 @@ import jakarta.nosql.document.DocumentCollectionManagerAsync; import org.eclipse.jnosql.artemis.configuration.CDIExtension; import org.eclipse.jnosql.artemis.configuration.ConfigurationException; +import org.eclipse.jnosql.artemis.configuration.document.DocumentConfigurationAsyncMock.DocumentCollectionManagerAsyncMock; import org.eclipse.jnosql.artemis.configuration.document.DocumentConfigurationMock.DocumentCollectionManagerMock; import org.eclipse.microprofile.config.Config; import org.junit.jupiter.api.Assertions; @@ -85,7 +86,7 @@ public void shouldReturnManager() { System.setProperty(prefix + ".provider", DocumentConfigurationAsyncMock.class.getName()); System.setProperty(prefix + ".database", "database"); final DocumentCollectionManagerAsync manager = config.getValue(prefix, DocumentCollectionManagerAsync.class); - final DocumentCollectionManagerMock managerMock = DocumentCollectionManagerMock.class.cast(manager); + final DocumentCollectionManagerAsyncMock managerMock = DocumentCollectionManagerAsyncMock.class.cast(manager); Assertions.assertEquals("database", managerMock.getDatabase()); System.clearProperty(prefix); System.clearProperty(prefix + ".settings.key"); diff --git a/artemis/artemis-configuration/src/test/java/org/eclipse/jnosql/artemis/configuration/document/DocumentConfigurationAsyncMock.java b/artemis/artemis-configuration/src/test/java/org/eclipse/jnosql/artemis/configuration/document/DocumentConfigurationAsyncMock.java index 0be21ef3e..aa7c00d24 100644 --- a/artemis/artemis-configuration/src/test/java/org/eclipse/jnosql/artemis/configuration/document/DocumentConfigurationAsyncMock.java +++ b/artemis/artemis-configuration/src/test/java/org/eclipse/jnosql/artemis/configuration/document/DocumentConfigurationAsyncMock.java @@ -41,8 +41,8 @@ public Settings getSettings() { @Override - public DocumentCollectionManagerMock getAsync(String database) { - return new DocumentCollectionManagerMock(database); + public DocumentCollectionManagerAsyncMock getAsync(String database) { + return new DocumentCollectionManagerAsyncMock(database); } @Override @@ -51,11 +51,11 @@ public void close() { } } - public static class DocumentCollectionManagerMock implements DocumentCollectionManagerAsync { + public static class DocumentCollectionManagerAsyncMock implements DocumentCollectionManagerAsync { private final String database; - public DocumentCollectionManagerMock(String database) { + public DocumentCollectionManagerAsyncMock(String database) { this.database = database; }