View Javadoc
1   package org.apache.maven.scm.provider.jazz.command.checkout;
2   
3   import org.apache.maven.scm.provider.jazz.command.JazzTckUtil;
4   import org.apache.maven.scm.tck.command.checkout.CheckOutCommandTckTest;
5   
6   import java.io.File;
7   
8   /*
9    * Licensed to the Apache Software Foundation (ASF) under one
10   * or more contributor license agreements.  See the NOTICE file
11   * distributed with this work for additional information
12   * regarding copyright ownership.  The ASF licenses this file
13   * to you under the Apache License, Version 2.0 (the
14   * "License"); you may not use this file except in compliance
15   * with the License.  You may obtain a copy of the License at
16   *
17   * http://www.apache.org/licenses/LICENSE-2.0
18   *
19   * Unless required by applicable law or agreed to in writing,
20   * software distributed under the License is distributed on an
21   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22   * KIND, either express or implied.  See the License for the
23   * specific language governing permissions and limitations
24   * under the License.
25   */
26  
27  /**
28   * @author <a href="mailto:ChrisGWarp@gmail.com">Chris Graham</a>
29   */
30  public class JazzCheckOutCommandTckTest
31      extends CheckOutCommandTckTest
32  {
33      // Easy access to our Tck Test Helper class.
34      private JazzTckUtil jazzTckUtil = new JazzTckUtil();
35  
36      /**
37       * {@inheritDoc}
38       *
39       * @see org.apache.maven.scm.ScmTckTestCase#initRepo()
40       */
41      @Override
42      public void initRepo()
43          throws Exception
44      {
45          // Create a unique repository workspace for this test.
46          jazzTckUtil.initRepo( getScmRepository() );
47      }
48  
49      /**
50       * {@inheritDoc}
51       *
52       * @see org.apache.maven.scm.ScmTckTestCase#removeRepo()
53       */
54      @Override
55      public void removeRepo()
56          throws Exception
57      {
58          super.removeRepo();
59          jazzTckUtil.removeRepo();
60      }
61  
62      /**
63       * {@inheritDoc}
64       *
65       * @see org.apache.maven.scm.ScmTckTestCase#getScmUrl()
66       */
67      @Override
68      public String getScmUrl()
69          throws Exception
70      {
71          return jazzTckUtil.getScmUrl();
72      }
73  
74      /**
75       * {@inheritDoc}
76       *
77       * @see org.apache.maven.scm.ScmTestCase#getWorkingCopy()
78       */
79      @Override
80      protected File getWorkingCopy()
81      {
82          return jazzTckUtil.getWorkingCopy();
83      }
84  }