Salesforce で、できるテスト、できないテスト
イシュー
できるテスト
- StandardSetControllerを使用するテストの書き方
できないテスト
- Profileの作成、編集を伴うテスト
参考
- apex - Passing Quote list to StandardSetController, not grabbing quote ID and returns null - Salesforce Stack Exchange
- apex - How to Create Profile in test method? - Salesforce Stack Exchange
- JP:An Introduction to Apex Code Test Methods - developer.force.com
- テストの作り方はいくつかある
- Adding a Test for the Batch Apex Class | Apex Workbook | Salesforce Developers
- バッチのテストを行う場合は、Test.startTest() と Test.stopTest() でバッチ部分をくくってあげる必要がある。