Timeline for How can I mock a query of ApexClass for testing?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:54 | history | edited | CommunityBot |
replaced http://salesforce.stackexchange.com/ with https://salesforce.stackexchange.com/
|
|
Oct 2, 2014 at 10:08 | comment | added | Brian Kessler | I really like this approach. I actually was thinking about playing with "virtual" to enable mocking, but I haven't investigated virtual classes much. As I understand SFDC, by default (unlike Java), classes are "final" and "virtual" changes this, but still (unlike abstract) allows for executable code. Are there any drawbacks to making a class virtual? Anything SFDC won't allow you to do with the virtual class that you can with a default/final class? | |
Oct 2, 2014 at 9:51 | history | answered | Alexander Johannes | CC BY-SA 3.0 |