From: Jim Procter Date: Fri, 12 Jul 2024 16:38:26 +0000 (+0100) Subject: JAL-3631 check we actually created EnvConfig! X-Git-Tag: Release_2_11_4_0~20^2~19 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=df0ad793086add0d8ecf33ec1135b5c1f3bf0ff3;p=jalview.git JAL-3631 check we actually created EnvConfig! --- diff --git a/getdown/src/getdown/core/src/test/java/com/threerings/getdown/data/EnvConfigTest.java b/getdown/src/getdown/core/src/test/java/com/threerings/getdown/data/EnvConfigTest.java index 25b810e..02deaa8 100644 --- a/getdown/src/getdown/core/src/test/java/com/threerings/getdown/data/EnvConfigTest.java +++ b/getdown/src/getdown/core/src/test/java/com/threerings/getdown/data/EnvConfigTest.java @@ -157,14 +157,17 @@ public class EnvConfigTest { System.getProperties().setProperty(EnvConfig.APPLICATION_APPDIR_PROPERTY, "/Applications/Getdown.app"); System.getProperties().setProperty("userdefaultappdir","true"); EnvConfig cfg = sysPropsConfig(notes, "appdir", CWD); + assertTrue(cfg!=null); hasUserAppDir(); System.getProperties().setProperty("nouserdefaultappdir","true"); cfg = sysPropsConfig(notes, "appdir", CWD); + assertTrue(cfg!=null); noUserAppDir(); System.getProperties().remove("nouserdefaultappdir"); cfg = sysPropsConfig(notes, "appdir", CWD); + assertTrue(cfg!=null); hasUserAppDir(); }