package com.perforce.maven.scm.provider.p4.command.checkout; /* * Copyright (c) 2010 Perforce Software. All rights reserved. */ import org.apache.maven.scm.ScmFileSet; import org.apache.maven.scm.command.checkout.CheckOutScmResult; import org.apache.maven.scm.tck.command.checkout.CheckOutCommandTckTest; import org.codehaus.plexus.util.FileUtils; import com.perforce.maven.scm.provider.p4.P4ScmTestUtils; public class P4CheckOutCommandTckTest extends CheckOutCommandTckTest { /** {@inheritDoc} */ public String getScmUrl() throws Exception { return P4ScmTestUtils.getScmUrl(); } /** {@inheritDoc} */ public void initRepo() throws Exception { P4ScmTestUtils.initRepo(); resetToOrignalFiles(); } private void resetToOrignalFiles() throws Exception { checkOut( getWorkingCopy(), getScmRepository() ); ScmFileSet fileSet = new ScmFileSet( getWorkingCopy(), P4ScmTestUtils.getAddedIncludes(), null ); getScmManager().getProviderByUrl( getScmUrl() ).remove( getScmRepository(), fileSet, "Remove previous test files" ); fileSet = new ScmFileSet( getWorkingDirectory(), P4ScmTestUtils.getTestIncludes(), null ); getScmManager().getProviderByUrl( getScmUrl() ).edit( getScmRepository(), fileSet ); P4ScmTestUtils.populateOriginalData( getBasedir(), getWorkingCopy() ); checkIn( getWorkingCopy(), getScmRepository() ); FileUtils.deleteDirectory( getWorkingDirectory() ); } public void testSecondCheckoutUsingTheSameSpec() throws Exception { CheckOutScmResult result = checkOut( getWorkingCopy(), getScmRepository() ); //fix me check for file count } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 11272 | jkovisto |
Populate //guest/joel_kovisto/p4maven/... from //guest/perforce_software/p4maven/.... |
||
//guest/perforce_software/p4maven/main/p4maven-provider/src/test/java/com/perforce/maven/scm/provider/p4/command/checkout/P4CheckOutCommandTckTest.java | |||||
#1 | 10055 | Matt Attaway | Pull over numerous changes from @dantran's branch. | ||
//guest/dantran/p4maven/p4maven-provider/src/test/java/com/perforce/maven/scm/provider/p4/command/checkout/P4CheckOutCommandTckTest.java | |||||
#3 | 9549 | dantran |
only commit if there are opened files. ie we dont want accidental changelist created |
||
#2 | 9525 | dantran | isolate the location of initial dataset into one place | ||
#1 | 9519 | dantran | folder rename to match with its artifactId | ||
//guest/dantran/p4maven/com.perforce.maven/src/test/java/com/perforce/maven/scm/provider/p4/command/checkout/P4CheckOutCommandTckTest.java | |||||
#5 | 9509 | dantran | adjust TCK's new data location which under src/it/template | ||
#4 | 9424 | dantran | add list and status TCK | ||
#3 | 9423 | dantran | get all test to use the same setup, handle checkout with tag, need to revisit how we handle ScmVersion | ||
#2 | 9422 | dantran | add update, changelog TCK | ||
#1 | 9297 | dantran | Add CheckOut TCK Implementation |