001package org.apache.maven.wagon.providers.scm; 002 003/* 004 * Licensed to the Apache Software Foundation (ASF) under one 005 * or more contributor license agreements. See the NOTICE file 006 * distributed with this work for additional information 007 * regarding copyright ownership. The ASF licenses this file 008 * to you under the Apache License, Version 2.0 (the 009 * "License"); you may not use this file except in compliance 010 * with the License. You may obtain a copy of the License at 011 * 012 * http://www.apache.org/licenses/LICENSE-2.0 013 * 014 * Unless required by applicable law or agreed to in writing, 015 * software distributed under the License is distributed on an 016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 017 * KIND, either express or implied. See the License for the 018 * specific language governing permissions and limitations 019 * under the License. 020 */ 021 022import org.apache.maven.scm.provider.ScmProvider; 023 024/** 025 * Test for ScmWagon using Git Exe as underlying SCM 026 */ 027public class ScmGitExeWagonTest 028 extends AbstractScmGitWagonTest 029{ 030 031 protected ScmProvider getScmProvider() 032 { 033 return new UserSafeGitExeScmProvider(); 034 } 035 036 @Override 037 public void testWagonGetFileList() 038 throws Exception 039 { 040 // remote list unsupported 041 // When a command is unsupported, SCM throws NoSuchCommandScmException. 042 // However, there's no equivalent exception in the Wagon API. 043 // ScmWagon wraps NoSuchCommandScmException with TransferFailedException, which gives no specific info. 044 // TODO: WagonTestCase should somehow determine whether a command was unsupported 045 // and skip the test using org.junit.Assume 046 } 047 048 @Override 049 public void testWagonGetFileListWhenDirectoryDoesNotExist() 050 throws Exception 051 { 052 // remote list unsupported 053 } 054 055 @Override 056 public void testWagonResourceExists() 057 throws Exception 058 { 059 // remote list unsupported 060 } 061 062 @Override 063 public void testWagonResourceNotExists() 064 throws Exception 065 { 066 // remote list unsupported 067 } 068 069 @Override 070 protected boolean supportsGetIfNewer() 071 { 072 return false; 073 } 074}