18 lines
356 B
Java
18 lines
356 B
Java
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"));
|
|
}
|
|
|
|
}
|