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 void | addToWorkingTree(File workingDirectory, File file, ScmRepository repository)
Convenience method to add a file to the working tree at the working directory |
protected CheckOutScmResult | checkOut(File workingDirectory, ScmRepository repository)
Convenience method to checkout files from the repository |
protected ScmRepository | getScmRepository()
Convenience method to get the ScmRepository for this provider |
abstract String | getScmUrl() |
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. |
protected void | setUp() |
protected void addToWorkingTree(File workingDirectory, File file, ScmRepository repository)
Convenience method to add a file to the working tree at the working directory
protected CheckOutScmResult checkOut(File workingDirectory, ScmRepository repository)
Convenience method to checkout files from the repository
protected ScmRepository getScmRepository()
Convenience method to get the ScmRepository for this provider
public abstract String getScmUrl()
Returns: A provider spesific and valid url for the repository
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)
protected void setUp()
Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.