remoteAdd.setName(remoteName).setURL("someotherurl.com").call();
}
@Test
public void testAddMultipleRemotes() {
final RemoteAddOp remoteAdd = geogig.command(RemoteAddOp.class);
String remoteName1 = "myremote";
String remoteURL1 = "http://test.com";
String remoteName2 = "myremote2";
String remoteURL2 = "http://test2.org";
Remote remote = remoteAdd.setName(remoteName1).setURL(remoteURL1).call();
assertEquals(remoteName1, remote.getName());
assertEquals(remoteURL1, remote.getFetchURL());
assertEquals(remoteURL1, remote.getPushURL());
assertEquals("+refs/heads/*:refs/remotes/" + remoteName1 + "/*", remote.getFetch());
remote = remoteAdd.setName(remoteName2).setURL(remoteURL2).call();
assertEquals(remoteName2, remote.getName());
assertEquals(remoteURL2, remote.getFetchURL());
assertEquals(remoteURL2, remote.getPushURL());
assertEquals("+refs/heads/*:refs/remotes/" + remoteName2 + "/*", remote.getFetch());