1 package org.apache.maven.scm.provider.svn.command.blame;
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.command.blame.BlameLine;
23 import org.apache.maven.scm.command.blame.BlameScmResult;
24 import org.apache.maven.scm.provider.svn.SvnScmTestUtils;
25 import org.apache.maven.scm.tck.command.blame.BlameCommandTckTest;
26
27 import java.io.File;
28 import java.util.List;
29
30
31
32
33 public abstract class SvnBlameCommandTckTest
34 extends BlameCommandTckTest
35 {
36 public String getScmUrl()
37 throws Exception
38 {
39 return SvnScmTestUtils.getScmUrl( new File( getRepositoryRoot(), "trunk" ) );
40 }
41
42 public void initRepo()
43 throws Exception
44 {
45 SvnScmTestUtils.initializeRepository( getRepositoryRoot() );
46 }
47
48 protected void verifyResult( BlameScmResult result )
49 {
50 List<BlameLine> lines = result.getLines();
51 assertEquals( "Expected 1 line in blame", 1, lines.size() );
52 BlameLine line = lines.get( 0 );
53 assertEquals( "trygvis", line.getAuthor() );
54 assertEquals( "7", line.getRevision() );
55 }
56 }