1
2
3
4
5
6
7
8
9
10 package org.eclipse.jgit.api;
11
12 import static org.junit.Assert.assertTrue;
13
14 import org.eclipse.jgit.transport.RemoteConfig;
15 import org.junit.Test;
16
17 public class RemoteDeleteCommandTest extends AbstractRemoteCommandTest {
18
19 @Test
20 public void testDelete() throws Exception {
21
22 RemoteConfig remoteConfig = setupRemote();
23
24
25 RemoteRemoveCommand cmd = Git.wrap(db).remoteRemove();
26 cmd.setRemoteName(REMOTE_NAME);
27 RemoteConfig remote = cmd.call();
28
29
30 assertRemoteConfigEquals(remoteConfig, remote);
31
32 assertTrue(RemoteConfig.getAllRemoteConfigs(db.getConfig()).isEmpty());
33 }
34
35 }