1 vote
Accepted

How to write Apex unit test for a function that fetches meta data?

I'm assuming you are wanting to deploy this as a managed package, and hence why you do not know if the target organization would have any custom objects? If so, then I would make the suggestion of ...
user avatar
  • 740
1 vote
Accepted

How to get Test Coverage on a Simple Wrapper Class

You are missing testing the actual code that does work -- public static WebhookWrapper parse(String json) { return (WebhookWrapper) System.JSON.deserialize(json, WebhookWrapper.class); } You need ...
user avatar
  • 62.2k
1 vote

Test Method Issue for removing duplicates from List

The signature of the method is to accept List<Sobjects>, But you are passing the list <String>. Can you try passing List<Sobject> to the method.
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible