JAL-3631 check we actually created EnvConfig!
authorJim Procter <jprocter@dundee.ac.uk>
Fri, 12 Jul 2024 16:38:26 +0000 (17:38 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Fri, 12 Jul 2024 16:38:26 +0000 (17:38 +0100)
getdown/src/getdown/core/src/test/java/com/threerings/getdown/data/EnvConfigTest.java

index 25b810e..02deaa8 100644 (file)
@@ -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();
     }