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