use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceCheckInCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(String scmUrl, String commandLine, ScmFileSet files) throws Exception {
ScmRepository repository = getScmManager().makeScmRepository(scmUrl);
PerforceScmProviderRepository svnRepository = (PerforceScmProviderRepository) repository.getProviderRepository();
Commandline cl = PerforceCheckInCommand.createCommandLine(svnRepository, workingDirectory);
assertCommandLine(commandLine, null, cl);
String change = PerforceCheckInCommand.createChangeListSpecification(svnRepository, files, "Test checkin", "//depot/projects/pathname", "testjob");
assertContains(change, "//depot/projects/pathname/foo.xml");
assertContains(change, "//depot/projects/pathname/bar.xml");
assertContains(change, "Test checkin");
assertContains(change, "testjob");
}
use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceDiffCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(ScmVersion startRev, ScmVersion endRev, String commandLine) throws Exception {
ScmRepository repository = getScmManager().makeScmRepository("scm:perforce://depot/projects/pathname");
PerforceScmProviderRepository svnRepository = (PerforceScmProviderRepository) repository.getProviderRepository();
Commandline cl = PerforceDiffCommand.createCommandLine(svnRepository, workingDirectory, startRev, endRev);
assertCommandLine(commandLine, null, cl);
}
use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceEditCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(String scmUrl, String commandLine, File workingDir, ScmFileSet files) throws Exception {
ScmRepository repository = getScmManager().makeScmRepository(scmUrl);
PerforceScmProviderRepository svnRepository = (PerforceScmProviderRepository) repository.getProviderRepository();
Commandline cl = PerforceEditCommand.createCommandLine(svnRepository, workingDir, files);
assertCommandLine(commandLine, null, cl);
}
use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceLoginCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(String commandLine) throws Exception {
ScmRepository repository = getScmManager().makeScmRepository("scm:perforce://depot/projects/pathname");
PerforceScmProviderRepository scmRepository = (PerforceScmProviderRepository) repository.getProviderRepository();
// CommandParameters params = new CommandParameters();
Commandline cl = PerforceLoginCommand.createCommandLine(scmRepository, workingDirectory);
assertCommandLine(commandLine, null, cl);
}
use of org.apache.maven.scm.provider.perforce.repository.PerforceScmProviderRepository in project maven-scm by apache.
the class PerforceStatusCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(String commandLine) throws Exception {
ScmRepository repository = getScmManager().makeScmRepository("scm:perforce://depot/projects/pathname");
PerforceScmProviderRepository svnRepository = (PerforceScmProviderRepository) repository.getProviderRepository();
Commandline cl = PerforceStatusCommand.createOpenedCommandLine(svnRepository, workingDirectory, "//depot/projects/pathname");
assertCommandLine(commandLine, null, cl);
}
Aggregations