001package org.apache.maven.scm.provider.accurev.command.status; 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 java.io.File; 023import java.io.InputStream; 024 025import org.apache.maven.scm.provider.accurev.cli.AccuRevJUnitUtil; 026import org.apache.maven.scm.provider.accurev.command.AccuRevTckUtil; 027import org.apache.maven.scm.tck.command.status.StatusCommandTckTest; 028import org.junit.After; 029import org.junit.Before; 030import org.junit.Test; 031import org.junit.runner.RunWith; 032import org.junit.runners.JUnit4; 033 034@RunWith( JUnit4.class ) 035public class AccuRevStatusCommandTckTest 036 extends StatusCommandTckTest 037{ 038 039 private AccuRevTckUtil accurevTckTestUtil = new AccuRevTckUtil(); 040 041 @Override 042 @Test 043 public void testStatusCommand() 044 throws Exception 045 { 046 super.testStatusCommand(); 047 } 048 049 @Override 050 @Before 051 public void setUp() 052 throws Exception 053 { 054 super.setUp(); 055 } 056 057 @Override 058 protected File getWorkingCopy() 059 { 060 return accurevTckTestUtil.getWorkingCopy(); 061 } 062 063 @Override 064 protected File getAssertionCopy() 065 { 066 return accurevTckTestUtil.getAssertionCopy(); 067 } 068 069 @Override 070 protected File getUpdatingCopy() 071 { 072 return accurevTckTestUtil.getUpdatingCopy(); 073 } 074 075 @Override 076 public String getScmUrl() 077 throws Exception 078 { 079 return accurevTckTestUtil.getScmUrl(); 080 } 081 082 @Override 083 public void initRepo() 084 throws Exception 085 { 086 accurevTckTestUtil.initRepo( getContainer() ); 087 } 088 089 @Override 090 protected InputStream getCustomConfiguration() 091 throws Exception 092 093 { 094 return AccuRevJUnitUtil.getPlexusConfiguration(); 095 } 096 097 @Override 098 @After 099 public void tearDown() 100 throws Exception 101 { 102 try 103 { 104 accurevTckTestUtil.tearDown(); 105 accurevTckTestUtil.removeWorkSpace( getWorkingCopy() ); 106 accurevTckTestUtil.removeWorkSpace( getUpdatingCopy() ); 107 108 } 109 finally 110 { 111 super.tearDown(); 112 } 113 } 114 115}