1 package org.apache.maven.scm.provider.jazz.command.checkin; 2 3 import org.apache.maven.scm.provider.jazz.command.JazzTckUtil; 4 import org.apache.maven.scm.tck.command.checkin.CheckInCommandTckTest; 5 6 import java.io.File; 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 <a href="mailto:ChrisGWarp@gmail.com">Chris Graham</a> 29 */ 30 public class JazzCheckInCommandTckTest 31 extends CheckInCommandTckTest 32 { 33 // Easy access to our Tck Test Helper class. 34 private JazzTckUtil jazzTckUtil = new JazzTckUtil(); 35 36 /** 37 * {@inheritDoc} 38 * 39 * @see org.apache.maven.scm.ScmTckTestCase#initRepo() 40 */ 41 @Override 42 public void initRepo() 43 throws Exception 44 { 45 // Needed when there is more than one test case (in the parent). 46 // Needed for a new system time for uniqueness. 47 jazzTckUtil.generateNewSystemTime(); 48 // Create a unique repository workspace for this test. 49 jazzTckUtil.initRepo( getScmRepository() ); 50 } 51 52 /** 53 * {@inheritDoc} 54 * 55 * @see org.apache.maven.scm.ScmTckTestCase#removeRepo() 56 */ 57 @Override 58 public void removeRepo() 59 throws Exception 60 { 61 super.removeRepo(); 62 jazzTckUtil.removeRepo(); 63 } 64 65 /** 66 * {@inheritDoc} 67 * 68 * @see org.apache.maven.scm.ScmTckTestCase#getScmUrl() 69 */ 70 @Override 71 public String getScmUrl() 72 throws Exception 73 { 74 return jazzTckUtil.getScmUrl(); 75 } 76 77 /** 78 * {@inheritDoc} 79 * 80 * @see org.apache.maven.scm.ScmTestCase#getWorkingCopy() 81 */ 82 @Override 83 protected File getWorkingCopy() 84 { 85 return jazzTckUtil.getWorkingCopy(); 86 } 87 88 /** 89 * {@inheritDoc} 90 * 91 * @see org.apache.maven.scm.ScmTestCase#getAssertionCopy() 92 */ 93 @Override 94 protected File getAssertionCopy() 95 { 96 return jazzTckUtil.getAssertionCopy(); 97 } 98 }