mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merge from SEAMIST3
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10733 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -64,6 +64,7 @@ public class TestRemoteCMIS extends CMISTest
|
||||
*
|
||||
* args[0] = serverUrl
|
||||
* args[1] = username/password
|
||||
* args[2] = [params=url|headers]
|
||||
*
|
||||
* @param args args
|
||||
*/
|
||||
@@ -84,12 +85,28 @@ public class TestRemoteCMIS extends CMISTest
|
||||
}
|
||||
}
|
||||
|
||||
// execute cmis tests with url arguments
|
||||
TestRunner.run(new TestSuite(TestRemoteCMIS.class));
|
||||
String params = "both";
|
||||
if (args.length > 2)
|
||||
{
|
||||
String[] paramSegment = args[1].split("=");
|
||||
if (paramSegment[0].equalsIgnoreCase("params"))
|
||||
{
|
||||
params = paramSegment[1].toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
// execute cmis tests with url arguments
|
||||
if (params.equals("both") || params.equals("url"))
|
||||
{
|
||||
TestRunner.run(new TestSuite(TestRemoteCMIS.class));
|
||||
}
|
||||
|
||||
// execute cmis tests with headers
|
||||
argsAsHeaders = true;
|
||||
TestRunner.run(new TestSuite(TestRemoteCMIS.class));
|
||||
if (params.equals("both") || params.equals("headers"))
|
||||
{
|
||||
argsAsHeaders = true;
|
||||
TestRunner.run(new TestSuite(TestRemoteCMIS.class));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user