From e0d5cec8a8fb72e755ef11745fa39c32a92de3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Helge=20=C3=98verland?= Date: Wed, 30 Oct 2024 20:05:35 +0100 Subject: [PATCH] fix: Update code --- .../trackedentity/TrackedEntityRequestParamsMapperTest.java | 1 - .../analytics/trackedentity/query/DataElementConditionTest.java | 1 + .../query/context/querybuilder/DataElementQueryBuilderTest.java | 1 + .../query/context/querybuilder/SqlQueryHelperTest.java | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/TrackedEntityRequestParamsMapperTest.java b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/TrackedEntityRequestParamsMapperTest.java index 6076fb6cca9b..d7d088f3aed7 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/TrackedEntityRequestParamsMapperTest.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/TrackedEntityRequestParamsMapperTest.java @@ -52,7 +52,6 @@ class TrackedEntityRequestParamsMapperTest { private TrackedEntityQueryRequestMapper trackedEntityQueryRequestMapper; @BeforeEach - @SuppressWarnings("unchecked") public void setUp() { trackedEntityQueryRequestMapper = new TrackedEntityQueryRequestMapper(trackedEntityTypeService, programService); diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/DataElementConditionTest.java b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/DataElementConditionTest.java index 3c3473cc1a41..23d66775b561 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/DataElementConditionTest.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/DataElementConditionTest.java @@ -47,6 +47,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +@SuppressWarnings("unchecked") class DataElementConditionTest { private DimensionIdentifier dimensionIdentifier; diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/context/querybuilder/DataElementQueryBuilderTest.java b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/context/querybuilder/DataElementQueryBuilderTest.java index d51162c436e2..ce11a678ab10 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/context/querybuilder/DataElementQueryBuilderTest.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/context/querybuilder/DataElementQueryBuilderTest.java @@ -43,6 +43,7 @@ import org.hisp.dhis.legend.LegendSet; import org.junit.jupiter.api.Test; +@SuppressWarnings("unchecked") class DataElementQueryBuilderTest { private final DataElementQueryBuilder dataElementQueryBuilder = new DataElementQueryBuilder(); diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/context/querybuilder/SqlQueryHelperTest.java b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/context/querybuilder/SqlQueryHelperTest.java index 264fad506280..3bd06e1d8ae6 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/context/querybuilder/SqlQueryHelperTest.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/trackedentity/query/context/querybuilder/SqlQueryHelperTest.java @@ -44,6 +44,7 @@ import org.junit.jupiter.api.Test; /** Unit tests for {@link SqlQueryHelper}. */ +@SuppressWarnings("unchecked") class SqlQueryHelperTest { @Test