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