Skip to content

Commit

Permalink
FINERACT-2081: Make MeterRegistry optional
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsaghy committed Jan 10, 2025
1 parent 62635a3 commit 3481761
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -113,6 +115,9 @@ public class DataSourcePerTenantServiceFactoryTest {
@Mock
private DatabasePasswordEncryptor databasePasswordEncryptor;

@Mock
private Optional<MeterRegistry> meterRegistry;

@InjectMocks
private DataSourcePerTenantServiceFactory underTest;

Expand Down

0 comments on commit 3481761

Please sign in to comment.