use of com.vaticle.typedb.core.server.parameters.CoreConfigParser in project grakn by graknlabs.
the class CoreConfigTest method config_file_missing_debugger_throws.
@Test
public void config_file_missing_debugger_throws() {
Path configMissingLogDebugger = Util.getTypedbDir().resolve("server/test/config/config-missing-debugger.yml");
try {
CoreConfigFactory.config(configMissingLogDebugger, new HashSet<>(), new CoreConfigParser());
fail();
} catch (TypeDBException e) {
assert e.code().isPresent();
assertEquals(MISSING_CONFIG_OPTION.code(), e.code().get());
assertEquals(MISSING_CONFIG_OPTION.message("log.debugger"), e.getMessage());
}
}
Aggregations