1 package org.apache.maven.scm.provider.accurev.command.checkout;
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 import java.io.InputStream;
24
25 import org.apache.maven.scm.provider.accurev.cli.AccuRevJUnitUtil;
26 import org.apache.maven.scm.provider.accurev.command.AccuRevTckUtil;
27 import org.apache.maven.scm.tck.command.checkout.CheckOutCommandTckTest;
28 import org.junit.After;
29 import org.junit.Before;
30 import org.junit.Test;
31 import org.junit.runner.RunWith;
32 import org.junit.runners.JUnit4;
33
34
35
36
37
38
39 @RunWith( JUnit4.class )
40 public class AccuRevCheckoutCommandTckTest
41 extends CheckOutCommandTckTest
42 {
43
44 protected AccuRevTckUtil testUtil = new AccuRevTckUtil();
45
46 @Override
47 protected InputStream getCustomConfiguration()
48 throws Exception
49
50 {
51 return AccuRevJUnitUtil.getPlexusConfiguration();
52 }
53
54 @Override
55 protected File getWorkingCopy()
56 {
57 return testUtil.getWorkingCopy();
58 }
59
60 @Override
61 protected File getAssertionCopy()
62 {
63 return testUtil.getAssertionCopy();
64 }
65
66 @Override
67 protected File getUpdatingCopy()
68 {
69 return testUtil.getUpdatingCopy();
70 }
71
72 @Override
73 public String getScmUrl()
74 throws Exception
75 {
76 return testUtil.getScmUrl();
77 }
78
79 @Override
80 public void initRepo()
81 throws Exception
82 {
83 testUtil.initRepo( getContainer() );
84 }
85
86 @Override
87 @Test
88 public void testCheckOutCommandTest()
89 throws Exception
90 {
91 super.testCheckOutCommandTest();
92 }
93
94 @Override
95 @Before
96 public void setUp()
97 throws Exception
98 {
99 super.setUp();
100 }
101
102 @Override
103 @After
104 public void tearDown()
105 throws Exception
106 {
107 try
108 {
109 testUtil.tearDown();
110 testUtil.removeWorkSpace( getWorkingCopy() );
111
112 }
113 finally
114 {
115 super.tearDown();
116 }
117 }
118
119 }