Everytime I solve a problem, another appears. More than a problem, I would say a SalesForce restrictions.
So, I want to test some code (which makes a web service call in order to display some data) with different user profiles. In order to accomplish that, I'm using the System.runAs(User) method.
First problem was that it's mandatory to use this method within a test method.
Solved that, easy. I've included the code in a TestMethod.
Now the second problem is, within a TestMethod is not possible to make a web service callout.
¿Which are my options here??!!