From e6023f802730e99cd6fac856ab7ad4f4447b8472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Helge=20=C3=98verland?= Date: Wed, 8 Jan 2025 19:45:19 +0100 Subject: [PATCH] fix: Update code --- .../service/AnalyticsZscoreSqlStatementProcessorTest.java | 2 -- .../src/main/java/org/hisp/dhis/test/TestBase.java | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/outlier/service/AnalyticsZscoreSqlStatementProcessorTest.java b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/outlier/service/AnalyticsZscoreSqlStatementProcessorTest.java index 5c1c716a90eb..bcc312f02f10 100644 --- a/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/outlier/service/AnalyticsZscoreSqlStatementProcessorTest.java +++ b/dhis-2/dhis-services/dhis-service-analytics/src/test/java/org/hisp/dhis/analytics/outlier/service/AnalyticsZscoreSqlStatementProcessorTest.java @@ -83,8 +83,6 @@ public void setUp() { ouA = createOrganisationUnit('A'); ouB = createOrganisationUnit('B'); - ouA.updatePath(); - ouB.updatePath(); } @Test diff --git a/dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/test/TestBase.java b/dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/test/TestBase.java index 4d67dc3b8d51..4e7f4dcbbb57 100644 --- a/dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/test/TestBase.java +++ b/dhis-2/dhis-support/dhis-support-test/src/main/java/org/hisp/dhis/test/TestBase.java @@ -1003,6 +1003,7 @@ public static OrganisationUnit createOrganisationUnit(char uniqueCharacter) { unit.setCode("OrganisationUnitCode" + uniqueCharacter); unit.setOpeningDate(date); unit.setComment("Comment" + uniqueCharacter); + unit.updatePath(); // unit.getSharing().setPublicAccess("--------"); return unit; @@ -1042,6 +1043,7 @@ public static OrganisationUnit createOrganisationUnit(String name) { unit.setCode(name); unit.setOpeningDate(date); unit.setComment("Comment " + name); + unit.updatePath(); return unit; }