Changed the default config location to /etc/dragoon/config.toml; added a CLI option (-c) to specify a different config file.
This commit is contained in:
17
src/test/java/tech/bitgoblin/config/CmdTest.java
Normal file
17
src/test/java/tech/bitgoblin/config/CmdTest.java
Normal file
@ -0,0 +1,17 @@
|
||||
package tech.bitgoblin.config;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import org.apache.commons.cli.ParseException;
|
||||
|
||||
public class CmdTest {
|
||||
|
||||
@Test
|
||||
public void shouldDefaultToEtc() throws ParseException {
|
||||
Cmd cmd = new Cmd(new String[]{});
|
||||
assertTrue(cmd.getConfigPath().equals("/etc/dragoon/config.toml"));
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user