From 5cf9fd221e85d8011ad53852c7f62347219147b6 Mon Sep 17 00:00:00 2001 From: Jan Bernitt Date: Wed, 22 Nov 2023 17:43:26 +0100 Subject: [PATCH] fix: mock test setup --- .../analytics/table/JdbcEventAnalyticsTableManagerTest.java | 4 ---- .../table/JdbcOwnershipAnalyticsTableManagerTest.java | 2 -- 2 files changed, 6 deletions(-) diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManagerTest.java b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManagerTest.java index a99c259a146a..62e6f4be9cd6 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManagerTest.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcEventAnalyticsTableManagerTest.java @@ -185,10 +185,6 @@ public void setUp() { jdbcTemplate, analyticsExportSettings, periodDataProvider); - } - - @Test - void verifyTableType() { assertThat(subject.getAnalyticsTableType(), is(AnalyticsTableType.EVENT)); } diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcOwnershipAnalyticsTableManagerTest.java b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcOwnershipAnalyticsTableManagerTest.java index 30ccef4bde33..386927acf176 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcOwnershipAnalyticsTableManagerTest.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/table/JdbcOwnershipAnalyticsTableManagerTest.java @@ -76,7 +76,6 @@ import org.hisp.dhis.program.Program; import org.hisp.dhis.resourcetable.ResourceTableService; import org.hisp.dhis.setting.SystemSettingManager; -import org.hisp.dhis.system.database.DatabaseInfo; import org.hisp.dhis.system.database.DatabaseInfoProvider; import org.hisp.quick.JdbcConfiguration; import org.hisp.quick.StatementDialect; @@ -147,7 +146,6 @@ class JdbcOwnershipAnalyticsTableManagerTest extends DhisConvenienceTest { @BeforeEach public void setUp() { - when(databaseInfoProvider.getDatabaseInfo()).thenReturn(DatabaseInfo.builder().build()); target = new JdbcOwnershipAnalyticsTableManager( idObjectManager,