Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
AbstractGitRemoteInfoCommandTckTest |
|
| 1.0;1 |
1 | package org.apache.maven.scm.provider.git.command.remoteinfo; | |
2 | ||
3 | import org.apache.maven.scm.provider.ScmProviderRepository; | |
4 | import org.apache.maven.scm.provider.git.GitScmTestUtils; | |
5 | import org.apache.maven.scm.provider.git.repository.GitScmProviderRepository; | |
6 | import org.apache.maven.scm.tck.command.remoteinfo.AbstractRemoteInfoCommandTckTest; | |
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 Bertrand Paquet | |
29 | */ | |
30 | ||
31 | 0 | public abstract class AbstractGitRemoteInfoCommandTckTest |
32 | extends AbstractRemoteInfoCommandTckTest | |
33 | { | |
34 | ||
35 | @Override | |
36 | protected ScmProviderRepository getScmProviderRepository() | |
37 | throws Exception | |
38 | { | |
39 | 0 | return new GitScmProviderRepository( getScmUrl().substring( "scm:git:".length() ) ); |
40 | } | |
41 | ||
42 | /** | |
43 | * {@inheritDoc} | |
44 | */ | |
45 | public void initRepo() | |
46 | throws Exception | |
47 | { | |
48 | 0 | GitScmTestUtils.initRepo( "src/test/resources/repository/", getRepositoryRoot(), getWorkingDirectory() ); |
49 | 0 | } |
50 | ||
51 | } |