org.apache.maven.scm

Class ScmTckTestCase

public abstract class ScmTckTestCase extends ScmTestCase

Base class for all TcK tests.

Basically all it does is to setup a default test enviroment common for all tck tests. The default setup includes:
1. Delete all default locations (working copy, updating copy etc)
2. Initialize the repository
3. Check out the repository to the working copy

Author: Torbjxrn Eikli Smxrgrav

Method Summary
protected voidaddToWorkingTree(File workingDirectory, File file, ScmRepository repository)
Convenience method to add a file to the working tree at the working directory
protected CheckOutScmResultcheckOut(File workingDirectory, ScmRepository repository)
Convenience method to checkout files from the repository
protected ScmRepositorygetScmRepository()
Convenience method to get the ScmRepository for this provider
abstract StringgetScmUrl()
abstract voidinitRepo()
Initialize repository at the getScmUrl() location with the files:


/pom.xml
/readme.txt
/src/main/java/Application.java
/src/test/java/Test.java

The setup is also asserting on the existence of these files.

protected voidsetUp()

Method Detail

addToWorkingTree

protected void addToWorkingTree(File workingDirectory, File file, ScmRepository repository)
Convenience method to add a file to the working tree at the working directory

checkOut

protected CheckOutScmResult checkOut(File workingDirectory, ScmRepository repository)
Convenience method to checkout files from the repository

getScmRepository

protected ScmRepository getScmRepository()
Convenience method to get the ScmRepository for this provider

getScmUrl

public abstract String getScmUrl()

Returns: A provider spesific and valid url for the repository

initRepo

public abstract void initRepo()
Initialize repository at the getScmUrl() location with the files:


/pom.xml
/readme.txt
/src/main/java/Application.java
/src/test/java/Test.java

The setup is also asserting on the existence of these files.
This should only be used by this class (thus do not call this method from derived classes)

setUp

protected void setUp()
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.