1 Antwort
Hi Jebastin, After analysing, it seems that the following code throws null pointer exception, as RestContext request is not defined.
req = RestContext.request;
Please go through this example, it will help you:
http://blog.jeffdouglas.com/2012/03/21/writing-unit-tests-for-v24-apex-rest-services/Let me know if you need any other help.Thanks,Neetu