From cfc0573c3eea78a576b3cc3a6e9d2cb40840d794 Mon Sep 17 00:00:00 2001 From: Maikel Arabori Date: Thu, 19 Dec 2024 10:11:05 +0100 Subject: [PATCH] fix: Broken test in master [DHIS2-18665] --- .../org/hisp/dhis/program/ProgramIndicatorServiceTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/program/ProgramIndicatorServiceTest.java b/dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/program/ProgramIndicatorServiceTest.java index 27f87bd1af07..f7c124b61627 100644 --- a/dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/program/ProgramIndicatorServiceTest.java +++ b/dhis-2/dhis-test-integration/src/test/java/org/hisp/dhis/program/ProgramIndicatorServiceTest.java @@ -551,14 +551,14 @@ void testBooleanAsNumeric() { @Test void testBooleanAsBoolean() { assertEquals( - "coalesce(case when ax.\"ps\" = 'ProgrmStagA' then \"DataElmentG\" else null end::numeric!=0,false)", + "coalesce(case when ax.\"ps\" = 'ProgrmStagA' then \"DataElmentG\" else null end::numeric != 0,false)", filter("#{ProgrmStagA.DataElmentG}")); } @Test void testBooleanAsBooleanWithinIf() { assertEquals( - " case when coalesce(case when ax.\"ps\" = 'ProgrmStagA' then \"DataElmentG\" else null end::numeric!=0,false) then 4 else 5 end", + " case when coalesce(case when ax.\"ps\" = 'ProgrmStagA' then \"DataElmentG\" else null end::numeric != 0,false) then 4 else 5 end", sql("if(#{ProgrmStagA.DataElmentG},4,5)")); }