1 package org.apache.maven.scm.provider.git.jgit.command.changelog;
2
3 import java.io.File;
4 import java.io.IOException;
5
6 import org.apache.maven.scm.provider.git.GitScmTestUtils;
7 import org.apache.maven.scm.provider.git.command.changelog.GitChangeLogCommandTckTest;
8 import org.eclipse.jgit.util.FileUtils;
9
10 /*
11 * Licensed to the Apache Software Foundation (ASF) under one
12 * or more contributor license agreements. See the NOTICE file
13 * distributed with this work for additional information
14 * regarding copyright ownership. The ASF licenses this file
15 * to you under the Apache License, Version 2.0 (the
16 * "License"); you may not use this file except in compliance
17 * with the License. You may obtain a copy of the License at
18 *
19 * http://www.apache.org/licenses/LICENSE-2.0
20 *
21 * Unless required by applicable law or agreed to in writing,
22 * software distributed under the License is distributed on an
23 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
24 * KIND, either express or implied. See the License for the
25 * specific language governing permissions and limitations
26 * under the License.
27 */
28
29 /**
30 * @author <a href="mailto:struberg@yahoo.de">Mark Struberg</a>
31 */
32 public class JGitChangeLogCommandTckTest
33 extends GitChangeLogCommandTckTest
34 {
35 /**
36 * {@inheritDoc}
37 */
38 public String getScmUrl()
39 throws Exception
40 {
41 return GitScmTestUtils.getScmUrl( getRepositoryRoot(), "jgit" );
42 }
43
44 @Override
45 protected void deleteDirectory( File directory )
46 throws IOException
47 {
48 if ( directory.exists() )
49 {
50 FileUtils.delete( directory, FileUtils.RECURSIVE | FileUtils.RETRY );
51 }
52 }
53 }