You need to sign in to do that
Don't have an account?
balaji rao
Hi all, I written a test class for Rest api controller.but in this test class i am not able to cover the access token and json string and endpoint please help me out ?
Hi all, I written a test class for Rest api controller.but in this test class i am not able to cover the access token and json string and endpoint please help me out ?
Did you try the mock callout ?
Below is the sample code, Thanks,
Govindaraj.S
yah, I have used Mock class.Same as the above.
I need to External Id in test class .
Please help me
caused by: System.NullPointerException: Attempt to de-reference a null object
Class.COH_BP_FeedItemHelper.processNewFeedItems: line 354, column 1
Trigger.COH_BP_FeedItemTrigger: line 15, column 1: []
Can you please post your trigger code here ? or else refer below test class. Here, 'Foreign_Key__c' is the external Id.
Thanks,
Govindaraj.S