mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix the mismatch argument type
This commit is contained in:
@@ -120,13 +120,13 @@ public class FilePlanTests extends BaseRestTest
|
|||||||
dataProviderClass = TestData.class,
|
dataProviderClass = TestData.class,
|
||||||
dataProvider = "getContainers"
|
dataProvider = "getContainers"
|
||||||
)
|
)
|
||||||
public void includeAllowableOperations(FilePlanComponentAlias filePlanAlias) throws Exception
|
public void includeAllowableOperations(String specialContainerAlias) throws Exception
|
||||||
{
|
{
|
||||||
//create RM Site if doesn't exist
|
//create RM Site if doesn't exist
|
||||||
createRMSiteIfNotExists();
|
createRMSiteIfNotExists();
|
||||||
filePlanComponentApi.usingRestWrapper().authenticateUser(dataUser.getAdminUser());
|
filePlanComponentApi.usingRestWrapper().authenticateUser(dataUser.getAdminUser());
|
||||||
//GET the file plan special containers with the optional parameter allowableOperations
|
//GET the file plan special containers with the optional parameter allowableOperations
|
||||||
FilePlanComponent filePlanComponent = filePlanComponentApi.withParams("include=allowableOperations").getFilePlanComponent(filePlanAlias.toString());
|
FilePlanComponent filePlanComponent = filePlanComponentApi.withParams("include=allowableOperations").getFilePlanComponent(specialContainerAlias);
|
||||||
//Check the list of allowableOperations returned
|
//Check the list of allowableOperations returned
|
||||||
assertTrue(filePlanComponent.getAllowableOperations().containsAll(Arrays.asList("update", "create")),
|
assertTrue(filePlanComponent.getAllowableOperations().containsAll(Arrays.asList("update", "create")),
|
||||||
"Wrong list of the allowable operations is return" + filePlanComponent.getAllowableOperations().toString());
|
"Wrong list of the allowable operations is return" + filePlanComponent.getAllowableOperations().toString());
|
||||||
|
Reference in New Issue
Block a user