You need to sign in to do that
Don't have an account?
Saad Ansari 13
We copied the InboundSocialPostHandlerImpl class from the Social Customer Service guide and also its corresponding test class. We had not made any modification to either of them but still when we run a test it keeps it 0% coverage.
We copied the InboundSocialPostHandlerImpl class from the Social Customer Service guide and also its corresponding test class. We had not made any modification to either of them but still when we run a test it keeps it 0% coverage.
My main question is if we are modifying the code do we really need to extend the class? What code be coming in the way of coverage if we really need to deploy?
My main question is if we are modifying the code do we really need to extend the class? What code be coming in the way of coverage if we really need to deploy?
global class MyInboundSocialPostHandlerImpl implements Social.InboundSocialPostHandler {}
One big caveat is, you will need to copy all functions of InboundSocialPostHandlerImpl even if you do not want to override them becuase once you start using MyInboundSocialPostHandlerImpl, the InboundSocialPostHandlerImpl class will become irrelevant (unless you chose to revert to default flows at some later stage). Make the MyInboundSocialPostHandlerImpl with your logic and write test class for all methods of MyInboundSocialPostHandlerImpl, this is simpler because of method you did not overwrite is available in InboundSocialPostHandlerImplTest (just copy paste).
Let me know if this helps
All Answers
Test Class:
Both classes are available in the document:
https://resources.docs.salesforce.com/sfdc/pdf/social_customer_service_impl_guide.pdf
Any update on this??? How did u deploy?? Facing same issue.Could you please help.
global class MyInboundSocialPostHandlerImpl implements Social.InboundSocialPostHandler {}
One big caveat is, you will need to copy all functions of InboundSocialPostHandlerImpl even if you do not want to override them becuase once you start using MyInboundSocialPostHandlerImpl, the InboundSocialPostHandlerImpl class will become irrelevant (unless you chose to revert to default flows at some later stage). Make the MyInboundSocialPostHandlerImpl with your logic and write test class for all methods of MyInboundSocialPostHandlerImpl, this is simpler because of method you did not overwrite is available in InboundSocialPostHandlerImplTest (just copy paste).
Let me know if this helps