View Javadoc
1   package org.apache.maven.scm.provider.accurev.command.checkin;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *    http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
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 }