1
2
3
4
5
6
7
8
9
10 package org.eclipse.jgit.api;
11
12 import static org.junit.Assert.assertEquals;
13
14 import java.util.List;
15
16 import org.eclipse.jgit.transport.RemoteConfig;
17 import org.junit.Test;
18
19 public class RemoteListCommandTest extends AbstractRemoteCommandTest {
20
21 @Test
22 public void testList() throws Exception {
23
24 RemoteConfig remoteConfig = setupRemote();
25
26
27 List<RemoteConfig> remotes = Git.wrap(db).remoteList().call();
28
29
30 assertEquals(1, remotes.size());
31
32 assertRemoteConfigEquals(remoteConfig, remotes.get(0));
33 }
34
35 }