From 3481761e74cfce14cbdfef5f5930996e3f6acb1a Mon Sep 17 00:00:00 2001 From: Adam Saghy Date: Fri, 10 Jan 2025 16:16:18 +0100 Subject: [PATCH] FINERACT-2081: Make MeterRegistry optional --- .../core/DataSourcePerTenantServiceFactoryTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fineract-provider/src/test/java/org/apache/fineract/infrastructure/core/DataSourcePerTenantServiceFactoryTest.java b/fineract-provider/src/test/java/org/apache/fineract/infrastructure/core/DataSourcePerTenantServiceFactoryTest.java index 546bc541a5..0ad58e0ae5 100644 --- a/fineract-provider/src/test/java/org/apache/fineract/infrastructure/core/DataSourcePerTenantServiceFactoryTest.java +++ b/fineract-provider/src/test/java/org/apache/fineract/infrastructure/core/DataSourcePerTenantServiceFactoryTest.java @@ -29,9 +29,11 @@ import com.zaxxer.hikari.HikariConfig; import com.zaxxer.hikari.HikariDataSource; +import io.micrometer.core.instrument.MeterRegistry; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.SQLException; +import java.util.Optional; import java.util.Properties; import javax.sql.DataSource; import org.apache.fineract.infrastructure.core.config.FineractProperties; @@ -113,6 +115,9 @@ public class DataSourcePerTenantServiceFactoryTest { @Mock private DatabasePasswordEncryptor databasePasswordEncryptor; + @Mock + private Optional meterRegistry; + @InjectMocks private DataSourcePerTenantServiceFactory underTest;