From df0ad793086add0d8ecf33ec1135b5c1f3bf0ff3 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 12 Jul 2024 17:38:26 +0100 Subject: [PATCH] JAL-3631 check we actually created EnvConfig! --- .../src/test/java/com/threerings/getdown/data/EnvConfigTest.java | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 1.7.10.2