]
George Gastaldi commented on FORGE-1729:
----------------------------------------
Is there any system property we might check if it is being running from a unit test?
Test harness should set the Configuration directory to use the test
temp dir by default
---------------------------------------------------------------------------------------
Key: FORGE-1729
URL:
https://issues.jboss.org/browse/FORGE-1729
Project: Forge
Issue Type: Enhancement
Components: Configuration
Affects Versions: 2.3.0.Final
Reporter: Lincoln Baxter III
Assignee: Lincoln Baxter III
Fix For: 2.5.0.Final
Currently the UserConfiguration references the current users home directory while running
tests - it should use the available system property while running tests in order to direct
the config dir to a temp location for that test execution:
{code}
static final String USER_CONFIG_PATH =
"org.jboss.forge.addon.configuration.USER_CONFIG_PATH";
String property = System.getProperty(USER_CONFIG_PATH);{code}