MNT-18806 Add REST test for deleting copy of record.

This commit is contained in:
Tom Page
2018-08-20 13:57:06 +01:00
parent 2239b23e40
commit 33f1c9e897
2 changed files with 127 additions and 4 deletions

View File

@@ -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()