1 package org.apache.maven.scm.provider.local.command.checkin;
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.tck.command.checkin.CheckInCommandTckTest;
23
24 import java.io.File;
25
26
27
28
29
30 public class LocalCheckInCommandTckTest
31 extends CheckInCommandTckTest
32 {
33 private static final String moduleName = "checkin-tck";
34
35 public String getScmUrl()
36 throws Exception
37 {
38 return "scm:local|" + getRepositoryRoot() + "|" + moduleName;
39 }
40
41 public void initRepo()
42 throws Exception
43 {
44 makeRepo( getRepositoryRoot() );
45 }
46
47 private void makeRepo( File workingDirectory )
48 throws Exception
49 {
50 makeFile( workingDirectory, moduleName + "/pom.xml", "/pom.xml" );
51
52 makeFile( workingDirectory, moduleName + "/readme.txt", "/readme.txt" );
53
54 makeFile( workingDirectory, moduleName + "/src/main/java/Application.java", "/src/main/java/Application.java" );
55
56 makeFile( workingDirectory, moduleName + "/src/test/java/Test.java", "/src/test/java/Test.java" );
57
58 makeDirectory( workingDirectory, moduleName + "/src/test/resources" );
59 }
60 }