Merge feature/RM-4012_Category_REST_API into feature/RM-4199_UnitTests

This commit is contained in:
Silviu Dinuta
2016-10-25 17:01:21 +03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ public class FileplanComponentsEntityResource implements
String permanentParameter = parameters.getParameter(PARAM_PERMANENT);
if(permanentParameter != null)
{
throw new InvalidArgumentException("Delete does not support parameter: permanent");
throw new InvalidArgumentException("DELETE does not support parameter: permanent");
}
nodes.deleteNode(nodeId, parameters);
}

View File

@@ -78,7 +78,7 @@ public class RMSiteEntityResource implements EntityResourceAction.Delete, Entity
String permanentParameter = parameters.getParameter(PARAM_PERMANENT);
if(permanentParameter != null)
{
throw new InvalidArgumentException("Delete does not support parameter: permanent");
throw new InvalidArgumentException("DELETE does not support parameter: permanent");
}
sites.deleteSite(siteId, parameters);
}
@@ -130,7 +130,7 @@ public class RMSiteEntityResource implements EntityResourceAction.Delete, Entity
{
if (!RM_SITE_ID.equals(siteId))
{
throw new InvalidParameterException("The Get is supported only for siteId = rm.");
throw new InvalidParameterException("GET is supported only for siteId = rm.");
}
return sites.getRMSite(siteId);
}