Merged API-STRIKES-BACK (5.2.0) to HEAD (5.2)

125666 jkaabimofrad: RA-933: Fixed API tests failures by refactoring the noAuth functionality.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127560 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jamal Kaabi-Mofrad
2016-06-02 21:37:21 +00:00
parent 058d52387f
commit f31d286c8c
3 changed files with 258 additions and 241 deletions

View File

@@ -302,7 +302,7 @@ public class ResourceInspector
{
if (! (httpMethod.equals(HttpMethod.GET) || httpMethod.equals(HttpMethod.POST)))
{
throw new IllegalArgumentException("@WebApiNoAuth should only be on GET methods: "+operation.getTitle());
throw new IllegalArgumentException("@WebApiNoAuth should only be on GET methods: "+operation.getTitle()+" Or POST method for creating a ticket.");
}
helper.whenOperationNoAuth(resourceInterfaceWithOneMethod, aMethod);
}