001package org.apache.maven.scm.provider.jazz.command.checkout;
002
003import org.apache.maven.scm.provider.jazz.command.JazzTckUtil;
004import org.apache.maven.scm.tck.command.checkout.CheckOutCommandTckTest;
005
006import java.io.File;
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 <a href="mailto:ChrisGWarp@gmail.com">Chris Graham</a>
029 */
030public class JazzCheckOutCommandTckTest
031    extends CheckOutCommandTckTest
032{
033    // Easy access to our Tck Test Helper class.
034    private JazzTckUtil jazzTckUtil = new JazzTckUtil();
035
036    /**
037     * {@inheritDoc}
038     *
039     * @see org.apache.maven.scm.ScmTckTestCase#initRepo()
040     */
041    @Override
042    public void initRepo()
043        throws Exception
044    {
045        // Create a unique repository workspace for this test.
046        jazzTckUtil.initRepo( getScmRepository() );
047    }
048
049    /**
050     * {@inheritDoc}
051     *
052     * @see org.apache.maven.scm.ScmTckTestCase#removeRepo()
053     */
054    @Override
055    public void removeRepo()
056        throws Exception
057    {
058        super.removeRepo();
059        jazzTckUtil.removeRepo();
060    }
061
062    /**
063     * {@inheritDoc}
064     *
065     * @see org.apache.maven.scm.ScmTckTestCase#getScmUrl()
066     */
067    @Override
068    public String getScmUrl()
069        throws Exception
070    {
071        return jazzTckUtil.getScmUrl();
072    }
073
074    /**
075     * {@inheritDoc}
076     *
077     * @see org.apache.maven.scm.ScmTestCase#getWorkingCopy()
078     */
079    @Override
080    protected File getWorkingCopy()
081    {
082        return jazzTckUtil.getWorkingCopy();
083    }
084}