Add templates for ClearCase, Starteam and Perforce for scm-usage page.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@378073 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
2e3901818a
commit
ab3eda60d2
10 files changed
+382
-31
No files matched your search
@@ -32,6 +32,15 @@ public class ScmUtilTest extends TestCase
|
||||
private final String cvs2 =
|
||||
"scm:cvs:ext:username@cvs.apache.org:/cvs/root:module";
|
||||
private final String svn = "scm:svn:http://svn.apache.org/svn/root/module";
|
||||
private final String perforce1 =
|
||||
"scm:perforce:john_doe@somehost:21:path_to_repository";
|
||||
private final String perforce2 = "scm:perforce://depot/modules/myproject";
|
||||
private final String starteam1 =
|
||||
"scm:starteam:john_doe:secret_password@myhost:23456/project/view/folder";
|
||||
private final String starteam2 =
|
||||
"scm:starteam:john_doe@myhost:23456/project/view/folder";
|
||||
private final String clearcase =
|
||||
"scm:clearcase:my_module_view://myserver/clearcase/configspecs/my_module.txt";
|
||||
private final String invalid = "";
|
||||
|
||||
public void testSCMConnectionSeparator()
|
||||
@@ -68,4 +77,30 @@ public class ScmUtilTest extends TestCase
|
||||
"scm:cvs:ext:john_doe@cvs.apache.org:/cvs/root:module" );
|
||||
assertEquals( scmUtil.getCvsConnection( svn, "" ), "" );
|
||||
}
|
||||
|
||||
public void testDeveloperAccessPerforce()
|
||||
{
|
||||
assertEquals( scmUtil.developerAccessPerforce( perforce1 ),
|
||||
"p4 -H somehost -p 21 -u username -P password path_to_repository\np4 submit -c \"A comment\"" );
|
||||
assertEquals( scmUtil.developerAccessPerforce( perforce2 ),
|
||||
"p4 -u username -P password //depot/modules/myproject\np4 submit -c \"A comment\"" );
|
||||
}
|
||||
|
||||
// TODO: FIXME: why does this fail with a NoClassDefFoundError?
|
||||
/*
|
||||
public void testDeveloperAccessStarteam()
|
||||
{
|
||||
assertEquals( scmUtil.developerAccessStarteam( starteam1 ),
|
||||
"stcmd co -x -nologo -stop -p username:password@myhost:23456/project/view/folder -is\nstcmd ci -x -nologo -stop -p username:password@myhost:23456/project/view/folder -f NCI -is" );
|
||||
assertEquals( scmUtil.developerAccessStarteam( starteam2 ),
|
||||
"stcmd co -x -nologo -stop -p username:@myhost:23456/project/view/folder -is\nstcmd ci -x -nologo -stop -p username:@myhost:23456/project/view/folder -f NCI -is" );
|
||||
}
|
||||
*/
|
||||
|
||||
public void testDeveloperAccessClearCase()
|
||||
{
|
||||
assertEquals( scmUtil.developerAccessClearCase( clearcase ),
|
||||
"cleartool checkout my_module_view" );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user