001 package org.apache.maven.scm.provider.git.command.remoteinfo;
002
003 import org.apache.maven.scm.provider.ScmProviderRepository;
004 import org.apache.maven.scm.provider.git.GitScmTestUtils;
005 import org.apache.maven.scm.provider.git.repository.GitScmProviderRepository;
006 import org.apache.maven.scm.tck.command.remoteinfo.AbstractRemoteInfoCommandTckTest;
007
008 /*
009 * Licensed to the Apache Software Foundation (ASF) under one
010 * or more contributor license agreements. See the NOTICE file
011 * distributed with this work for additional information
012 * regarding copyright ownership. The ASF licenses this file
013 * to you under the Apache License, Version 2.0 (the
014 * "License"); you may not use this file except in compliance
015 * with the License. You may obtain a copy of the License at
016 *
017 * http://www.apache.org/licenses/LICENSE-2.0
018 *
019 * Unless required by applicable law or agreed to in writing,
020 * software distributed under the License is distributed on an
021 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
022 * KIND, either express or implied. See the License for the
023 * specific language governing permissions and limitations
024 * under the License.
025 */
026
027 /*
028 * @author Bertrand Paquet
029 */
030
031 public abstract class AbstractGitRemoteInfoCommandTckTest
032 extends AbstractRemoteInfoCommandTckTest
033 {
034
035 @Override
036 protected ScmProviderRepository getScmProviderRepository()
037 throws Exception
038 {
039 return new GitScmProviderRepository( getScmUrl().substring( "scm:git:".length() ) );
040 }
041
042 /**
043 * {@inheritDoc}
044 */
045 public void initRepo()
046 throws Exception
047 {
048 GitScmTestUtils.initRepo( "src/test/resources/repository/", getRepositoryRoot(), getWorkingDirectory() );
049 }
050
051 }