mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
MNT-18806 Add REST test for deleting copy of record.
This commit is contained in:
@@ -92,14 +92,28 @@ public class RestAPIFactory
|
||||
return getRmRestWrapper().withSearchAPI();
|
||||
}
|
||||
|
||||
public Node getNodeAPI(RepoTestModel model) throws Exception
|
||||
public Node getNodeAPI(RepoTestModel model) throws RuntimeException
|
||||
{
|
||||
return getCoreAPI(null).usingNode(model);
|
||||
try
|
||||
{
|
||||
return getCoreAPI(null).usingNode(model);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new RuntimeException("Failed to load nodeAPI.", e);
|
||||
}
|
||||
}
|
||||
|
||||
public Node getNodeAPI(UserModel userModel, RepoTestModel model) throws Exception
|
||||
public Node getNodeAPI(UserModel userModel, RepoTestModel model) throws RuntimeException
|
||||
{
|
||||
return getCoreAPI(userModel).usingNode(model);
|
||||
try
|
||||
{
|
||||
return getCoreAPI(userModel).usingNode(model);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new RuntimeException("Failed to load nodeAPI.", e);
|
||||
}
|
||||
}
|
||||
|
||||
public RMSiteAPI getRMSiteAPI()
|
||||
|
Reference in New Issue
Block a user