You need to sign in to do that
Don't have an account?
Gupta
JSON Parsing...
setoFID = (Set<String>)JSON.deserialize(trids , Set<String>.class);
How to cover this Line in Test class, it showing (System.NullPointerException: null input to JSON parser) Error Message.
Probably you are sending null in the variable "trids".
Try somehting like
Hi Gupta,
Add the `{get; set;}` accessors to the properties to get coverage.
http://salesforce.stackexchange.com/questions/10018/testing-apex-classes-created-by-jsontoapex
http://sfdchack.blogspot.in/2012/09/json-object-has-same-key-as-salesforce.html
Regards,
Ashish