use of org.locationtech.geogig.api.porcelain.FetchOp in project GeoGig by boundlessgeo.
the class FetchOpTest method testFetchWithPrune.
@Test
public void testFetchWithPrune() throws Exception {
prepareForFetch(true);
// fetch from the remote
FetchOp fetch = fetch();
fetch.addRemote("origin").setAll(true).call();
verifyFetch();
// Remove a branch from the remote
remoteGeogig.geogig.command(BranchDeleteOp.class).setName("Branch1").call();
// fetch again
fetch = fetch();
fetch.setPrune(true).call();
verifyPrune();
}
use of org.locationtech.geogig.api.porcelain.FetchOp in project GeoGig by boundlessgeo.
the class FetchOpTest method testFetch.
@Test
public void testFetch() throws Exception {
prepareForFetch(true);
// fetch from the remote
FetchOp fetch = fetch();
fetch.call();
verifyFetch();
}
use of org.locationtech.geogig.api.porcelain.FetchOp in project GeoGig by boundlessgeo.
the class FetchOpTest method testFetchFullDepth.
@Test
public void testFetchFullDepth() throws Exception {
prepareForFetch(false);
// clone the repository
CloneOp clone = clone();
clone.setDepth(2);
clone.setRepositoryURL(remoteGeogig.envHome.getCanonicalPath()).call();
FetchOp fetch = fetch();
fetch.setFullDepth(true);
fetch.call();
verifyFetch();
}
use of org.locationtech.geogig.api.porcelain.FetchOp in project GeoGig by boundlessgeo.
the class FetchOpTest method testFetchFullDepthWithFullRepo.
@Test
public void testFetchFullDepthWithFullRepo() throws Exception {
prepareForFetch(true);
FetchOp fetch = fetch();
fetch.setFullDepth(true);
fetch.call();
verifyFetch();
}
use of org.locationtech.geogig.api.porcelain.FetchOp in project GeoGig by boundlessgeo.
the class FetchOpTest method testFetchSpecificRemote.
@Test
public void testFetchSpecificRemote() throws Exception {
prepareForFetch(true);
// fetch from the remote
FetchOp fetch = fetch();
fetch.addRemote("origin").call();
verifyFetch();
}
Aggregations