Search in sources :

Example 16 with TfsScmProviderRepository

use of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository in project maven-scm by apache.

the class TfsStatusCommandTest method testCommandline.

public void testCommandline() throws Exception {
    TfsScmProviderRepository repo = getScmProviderRepository();
    Commandline cmd = new TfsStatusCommand().createCommand(repo, getScmFileSet()).getCommandline();
    String expected = "tf status -login:user,password -workspace:workspace -recursive -format:detailed " + repo.getServerPath();
    assertCommandLine(expected, getWorkingDirectory(), cmd);
}
Also used : Commandline(org.codehaus.plexus.util.cli.Commandline) TfsScmProviderRepository(org.apache.maven.scm.provider.tfs.TfsScmProviderRepository)

Aggregations

TfsScmProviderRepository (org.apache.maven.scm.provider.tfs.TfsScmProviderRepository)16 Commandline (org.codehaus.plexus.util.cli.Commandline)11 ErrorStreamConsumer (org.apache.maven.scm.provider.tfs.command.consumer.ErrorStreamConsumer)3 ScmFile (org.apache.maven.scm.ScmFile)2 ScmRevision (org.apache.maven.scm.ScmRevision)2 File (java.io.File)1 ScmTagParameters (org.apache.maven.scm.ScmTagParameters)1 CheckOutScmResult (org.apache.maven.scm.command.checkout.CheckOutScmResult)1 StatusScmResult (org.apache.maven.scm.command.status.StatusScmResult)1 ChangedFileConsumer (org.apache.maven.scm.provider.tfs.command.consumer.ChangedFileConsumer)1 FileListConsumer (org.apache.maven.scm.provider.tfs.command.consumer.FileListConsumer)1