Class ConfigUtilsTest
java.lang.Object
ubic.gemma.core.config.ConfigUtilsTest
Covers the
*_FILE indirection in ConfigUtils.resolveEnvVar(String, java.util.function.Function).
Uses the injectable env-source overload because System.setenv does not exist on the JVMs Gemma runs on.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
ConfigUtilsTest
public ConfigUtilsTest()
-
-
Method Details
-
testResolvesFromFileWhenFileSuffixIsSet
- Throws:
IOException
-
testTrimsLeadingAndTrailingWhitespace
- Throws:
IOException
-
testFallsBackToDirectEnvVarWhenFileSuffixUnset
@Test public void testFallsBackToDirectEnvVarWhenFileSuffixUnset() -
testFallsBackToDirectEnvVarWhenFileSuffixIsBlank
@Test public void testFallsBackToDirectEnvVarWhenFileSuffixIsBlank() -
testReturnsNullWhenNeitherIsSet
@Test public void testReturnsNullWhenNeitherIsSet() -
testFailsFastWhenFileSuffixPointsToMissingFile
-
testProductionOverloadReadsSystemEnv
@Test public void testProductionOverloadReadsSystemEnv() -
testIntegrationWithFilterEnvironmentVariables
@Test public void testIntegrationWithFilterEnvironmentVariables(@TempDir Path tmp) throws IOException - Throws:
IOException
-