Pages

Tuesday, April 26, 2011

Apex Static Resource

StaticResources can be used in unit tests to store data that would otherwise clutter the test cases.

StaticResource xml = [select body, name from StaticResource where name = 'StaticResourceName'  limit 1];

No comments:

Post a Comment