use of org.locationtech.geogig.api.porcelain.RemoteRemoveOp in project GeoGig by boundlessgeo.
the class RemoteRemoveOpTest method testEmptyName.
@Test
public void testEmptyName() {
final RemoteRemoveOp remoteRemove = geogig.command(RemoteRemoveOp.class);
exception.expect(RemoteException.class);
remoteRemove.setName("").call();
}
use of org.locationtech.geogig.api.porcelain.RemoteRemoveOp in project GeoGig by boundlessgeo.
the class RemoteRemoveOpTest method testNullName.
@Test
public void testNullName() {
final RemoteRemoveOp remoteRemove = geogig.command(RemoteRemoveOp.class);
exception.expect(RemoteException.class);
remoteRemove.setName(null).call();
}
use of org.locationtech.geogig.api.porcelain.RemoteRemoveOp in project GeoGig by boundlessgeo.
the class RemoteRemoveOpTest method testRemoveNonexistentRemote.
@Test
public void testRemoveNonexistentRemote() {
final RemoteAddOp remoteAdd = geogig.command(RemoteAddOp.class);
String remoteName = "myremote";
String remoteURL = "http://test.com";
Remote remote = remoteAdd.setName(remoteName).setURL(remoteURL).call();
assertEquals(remoteName, remote.getName());
assertEquals(remoteURL, remote.getFetchURL());
assertEquals(remoteURL, remote.getPushURL());
assertEquals("+refs/heads/*:refs/remotes/" + remoteName + "/*", remote.getFetch());
final RemoteRemoveOp remoteRemove = geogig.command(RemoteRemoveOp.class);
exception.expect(RemoteException.class);
remoteRemove.setName("nonexistent").call();
}
Aggregations