From 3b3d5d24c87a3dbcb1dbb7a0642b99053af1dbdd Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 2 Apr 2024 14:21:23 -0500 Subject: [PATCH] CLDR-17493 fix cldr-apps tests to skip if no database --- .../java/org/unicode/cldr/unittest/web/TestUserRegistry.java | 3 +++ .../src/test/java/org/unicode/cldr/web/TestSTFactory.java | 1 + 2 files changed, 4 insertions(+) diff --git a/tools/cldr-apps/src/test/java/org/unicode/cldr/unittest/web/TestUserRegistry.java b/tools/cldr-apps/src/test/java/org/unicode/cldr/unittest/web/TestUserRegistry.java index 2b9827b00de..d4d03acabde 100644 --- a/tools/cldr-apps/src/test/java/org/unicode/cldr/unittest/web/TestUserRegistry.java +++ b/tools/cldr-apps/src/test/java/org/unicode/cldr/unittest/web/TestUserRegistry.java @@ -74,6 +74,9 @@ public void TestCanSetUserLevel() throws SQLException { * @throws SQLException */ public void TestOrgList() throws SQLException { + if (TestAll.skipIfNoDb()) { + return; + } TestSTFactory.getFactory(); // to setup the User Regitry. for (String name : UserRegistry.getOrgList()) { try { diff --git a/tools/cldr-apps/src/test/java/org/unicode/cldr/web/TestSTFactory.java b/tools/cldr-apps/src/test/java/org/unicode/cldr/web/TestSTFactory.java index 809c7e18942..51de4343872 100644 --- a/tools/cldr-apps/src/test/java/org/unicode/cldr/web/TestSTFactory.java +++ b/tools/cldr-apps/src/test/java/org/unicode/cldr/web/TestSTFactory.java @@ -50,6 +50,7 @@ public class TestSTFactory { @BeforeAll public static void setup() { + if (TestAll.skipIfNoDb()) return; TestAll.setupTestDb(); }