use of org.apache.maven.scm.provider.starteam.repository.StarteamScmProviderRepository in project maven-scm by apache.
the class StarteamEditCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(String scmUrl, ScmFileSet fileSet, String commandLine) throws Exception {
ScmRepository repo = getScmManager().makeScmRepository(scmUrl);
StarteamScmProviderRepository repository = (StarteamScmProviderRepository) repo.getProviderRepository();
Commandline cl = StarteamEditCommand.createCommandLine(repository, fileSet);
assertCommandLine(commandLine, null, cl);
}
use of org.apache.maven.scm.provider.starteam.repository.StarteamScmProviderRepository in project maven-scm by apache.
the class StarteamRemoveCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(String scmUrl, ScmFileSet fileSet, String crPath, String commandLine) throws Exception {
ScmRepository repo = getScmManager().makeScmRepository(scmUrl);
StarteamScmProviderRepository repository = (StarteamScmProviderRepository) repo.getProviderRepository();
Commandline cl = StarteamRemoveCommand.createCommandLine(repository, fileSet);
assertCommandLine(commandLine, null, cl);
}
use of org.apache.maven.scm.provider.starteam.repository.StarteamScmProviderRepository in project maven-scm by apache.
the class StarteamTagCommandTest method testCommandLine.
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
private void testCommandLine(String scmUrl, File workDir, String tag, String commandLine) throws Exception {
ScmRepository repo = getScmManager().makeScmRepository(scmUrl);
StarteamScmProviderRepository repository = (StarteamScmProviderRepository) repo.getProviderRepository();
Commandline cl = StarteamTagCommand.createCommandLine(repository, workDir, tag);
assertCommandLine(commandLine, null, cl);
}
use of org.apache.maven.scm.provider.starteam.repository.StarteamScmProviderRepository in project maven-scm by apache.
the class StarteamScmProviderTest method testMultipleViewsUrl.
/**
* To specify multiple views url, we must use '|'( pipe ) as separator,
* must separate host and port using |
*
* @throws Exception
*/
public void testMultipleViewsUrl() throws Exception {
String scmSpecificUrl = "user:password@host|1234|/project/rootview:subview/folder";
// String scmSpecificUrl = "user:password@host|1234/project/rootview:subview/folder"; //should work as well
StarteamScmProvider provider = new StarteamScmProvider();
StarteamScmProviderRepository starteamProvider = (StarteamScmProviderRepository) provider.makeProviderScmRepository(scmSpecificUrl, '|');
assertEquals("user", starteamProvider.getUser());
assertEquals("password", starteamProvider.getPassword());
assertEquals(1234, starteamProvider.getPort());
assertEquals("host", starteamProvider.getHost());
assertEquals("/project/rootview:subview/folder", starteamProvider.getPath());
assertEquals("user:password@host:1234/project/rootview:subview/folder", starteamProvider.getFullUrl());
}
Aggregations