1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.scm.tck.command.remoteinfo;
20
21 import org.apache.maven.scm.ScmFileSet;
22 import org.apache.maven.scm.ScmTckTestCase;
23 import org.apache.maven.scm.command.remoteinfo.RemoteInfoScmResult;
24 import org.apache.maven.scm.provider.ScmProvider;
25 import org.apache.maven.scm.provider.ScmProviderRepository;
26 import org.junit.Test;
27
28
29
30
31
32
33
34
35
36
37 public abstract class AbstractRemoteInfoCommandTckTest extends ScmTckTestCase {
38
39 protected abstract void checkResult(RemoteInfoScmResult result);
40
41 protected abstract ScmProviderRepository getScmProviderRepository() throws Exception;
42
43 @Test
44 public void testRemoteInfoCommand() throws Exception {
45 ScmProvider provider = getScmManager().getProviderByRepository(getScmRepository());
46 RemoteInfoScmResult result =
47 provider.remoteInfo(getScmProviderRepository(), new ScmFileSet(getWorkingCopy()), null);
48
49 checkResult(result);
50 }
51 }