use of org.locationtech.geogig.api.porcelain.ConfigOp in project GeoGig by boundlessgeo.
the class ConfigOpTest method testInvalidSectionKey.
@Test
public void testInvalidSectionKey() {
final ConfigOp config = geogig.command(ConfigOp.class);
Optional<Map<String, String>> result = config.setScope(ConfigScope.GLOBAL).setAction(ConfigAction.CONFIG_GET).setName("doesnt.exist").setValue(null).call();
assertFalse(result.isPresent());
}
use of org.locationtech.geogig.api.porcelain.ConfigOp in project GeoGig by boundlessgeo.
the class ConfigOpTest method testTooManyArguments.
@Test
public void testTooManyArguments() {
final ConfigOp config = geogig.command(ConfigOp.class);
exception.expect(ConfigException.class);
config.setScope(ConfigScope.GLOBAL).setAction(ConfigAction.CONFIG_GET).setName("too.many").setValue("arguments").call();
}
Aggregations