-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Mastering Application Development with Force.com
By :
One of the unique features of the Salesforce1 platform is its governor limits. These limits are intended to keep you from writing inefficient code and, more importantly, ensure that no one org is using vast amounts of resources at the detriment of other org's. Having said that, they can often cause problems when writing tests. After all, if you're creating your own test data, and testing in bulk, you may very well run into the max DML or max query count limits. This is why Salesforce created the platform-unique startTest and stopTest methods. These methods do more than just delineating the portions of your test that exercise your code; they provide you with two invaluable services. First, calling startTest() will reset your governor limits and limit them to just the code between startTest() and stopTest(). This means that you are free to create your test data without the creation of that data causing you to hit a governor limit. Additionally, it means that...
Change the font size
Change margin width
Change background colour