1 package org.apache.maven.wagon.providers.scm;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23 import java.io.IOException;
24
25 import org.codehaus.plexus.util.FileUtils;
26
27
28
29
30
31
32
33 public abstract class AbstractScmCvsWagonTest
34 extends AbstractScmWagonTest
35 {
36 private String repository;
37
38 @Override
39 protected void setUp()
40 throws Exception
41 {
42 super.setUp();
43
44 File origRepo = getTestFile( "target/test-classes/test-repo-cvs" );
45
46 File testRepo = getTestFile( "target/test-classes/test-repo-cvs-test" );
47
48 FileUtils.deleteDirectory( testRepo );
49
50 FileUtils.copyDirectoryStructure( origRepo, testRepo );
51
52 repository = "scm:cvs|local|" + testRepo.getAbsolutePath() + "|repository";
53
54 }
55
56 protected String getScmId()
57 {
58 return "cvs";
59 }
60
61 protected String getTestRepositoryUrl()
62 throws IOException
63 {
64 return repository;
65 }
66 }