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
24 import org.codehaus.plexus.util.FileUtils;
25
26
27
28
29
30
31
32 public abstract class AbstractScmSvnWagonTest
33 extends AbstractScmWagonTest
34 {
35 private String repository;
36
37 protected void setUp()
38 throws Exception
39 {
40 super.setUp();
41
42
43
44 File origRepo = getTestFile( "target/test-classes/test-repo-svn" );
45
46 File testRepo = getTestFile( "target/test-classes/test-repo-svn-test" );
47
48 FileUtils.deleteDirectory( testRepo );
49
50 FileUtils.copyDirectoryStructure( origRepo, testRepo );
51
52 repository = "scm:svn:" + testRepo.getAbsoluteFile().toPath().toUri().toASCIIString();
53 }
54
55 protected String getScmId()
56 {
57 return "svn";
58 }
59
60 protected String getTestRepositoryUrl()
61 {
62 return repository;
63 }
64
65 protected boolean supportsGetIfNewer()
66 {
67 return false;
68 }
69 }