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