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;