New answers tagged httpcalloutmock
0
votes
HttpCalloutMock for string response
There's a discrepancy between what you're saying and what you're doing.
You're working with semicolon separated value data
Your mock class is trying to pass it as JSON
SSV != JSON, so that's a problem....
Top 50 recent answers are included
Related Tags
httpcalloutmock × 179unit-test × 108
apex × 98
callout × 54
code-coverage × 24
httprequest × 21
failing-tests × 20
webservices × 14
batch × 13
rest-api × 10
future × 8
trigger × 6
integration × 6
http × 6
httpresponse × 6
mock × 6
xml × 5
webservicemock × 5
json × 4
scheduled-apex × 3
apexrest × 3
dml × 3
schedulebatch × 3
queueable-interface × 3
api × 2