function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ramakrishnan AyyanarRamakrishnan Ayyanar 

How will write test class for Map Get method?

I worte one test class.In this test class one Map.get() method is used.
if i run test ,i got the error .

"Methods defined as TestMethod do not support getContent call, test skipped"

Please any one tell me solution.
Best Answer chosen by Ramakrishnan Ayyanar
bob_buzzardbob_buzzard
The error isn't complaining about a Map.get call, rather its a PageReference.getContent, which isn't supported in tests.  

All Answers

bob_buzzardbob_buzzard
The error isn't complaining about a Map.get call, rather its a PageReference.getContent, which isn't supported in tests.  
This was selected as the best answer
Ramakrishnan AyyanarRamakrishnan Ayyanar
its a PageReference.getContentasPdf