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