use of org.locationtech.geogig.api.plumbing.LsRemote in project GeoGig by boundlessgeo.
the class RemoteRepositoryTestCase method lsremote.
protected LsRemote lsremote() {
LsRemote lsRemote = spy(localGeogig.geogig.command(LsRemote.class));
doReturn(Optional.of(remoteRepo)).when(lsRemote).getRemoteRepo(any(Remote.class));
return lsRemote;
}
use of org.locationtech.geogig.api.plumbing.LsRemote in project GeoGig by boundlessgeo.
the class RemoteRepositoryTestCase method clone.
protected CloneOp clone() {
CloneOp clone = spy(localGeogig.geogig.command(CloneOp.class));
FetchOp fetch = fetch();
// when(clone.command(FetchOp.class)).thenReturn(fetch);
doReturn(fetch).when(clone).command(eq(FetchOp.class));
LsRemote lsRemote = lsremote();
// when(clone.command(LsRemote.class)).thenReturn(lsRemote);
doReturn(lsRemote).when(clone).command(eq(LsRemote.class));
return clone;
}
use of org.locationtech.geogig.api.plumbing.LsRemote in project GeoGig by boundlessgeo.
the class RemoteRepositoryTestCase method push.
protected PushOp push() {
SendPack sendPack = spy(localGeogig.geogig.command(SendPack.class));
doReturn(Optional.of(remoteRepo)).when(sendPack).getRemoteRepo(any(Remote.class));
PushOp push = spy(localGeogig.geogig.command(PushOp.class));
doReturn(sendPack).when(push).command(eq(SendPack.class));
FetchOp fetch = fetch();
// when(push.command(FetchOp.class)).thenReturn(fetch);
doReturn(fetch).when(push).command(eq(FetchOp.class));
LsRemote lsRemote = lsremote();
// when(push.command(LsRemote.class)).thenReturn(lsRemote);
doReturn(lsRemote).when(push).command(eq(LsRemote.class));
return push;
}
use of org.locationtech.geogig.api.plumbing.LsRemote in project GeoGig by boundlessgeo.
the class RemoteRepositoryTestCase method pull.
protected PullOp pull() {
PullOp pull = spy(localGeogig.geogig.command(PullOp.class));
FetchOp fetch = fetch();
// when(pull.command(eq(FetchOp.class))).thenReturn(fetch);
doReturn(fetch).when(pull).command(eq(FetchOp.class));
LsRemote lsRemote = lsremote();
// when(pull.command(eq(LsRemote.class))).thenReturn(lsRemote);
doReturn(lsRemote).when(pull).command(eq(LsRemote.class));
return pull;
}
use of org.locationtech.geogig.api.plumbing.LsRemote in project GeoGig by boundlessgeo.
the class RemoteRepositoryTestCase method fetch.
protected FetchOp fetch() {
FetchOp remoteRepoFetch = spy(localGeogig.geogig.command(FetchOp.class));
doReturn(Optional.of(remoteRepo)).when(remoteRepoFetch).getRemoteRepo(any(Remote.class), any(DeduplicationService.class));
LsRemote lsRemote = lsremote();
doReturn(lsRemote).when(remoteRepoFetch).command(eq(LsRemote.class));
return remoteRepoFetch;
}
Aggregations