Created
May 14, 2015 08:32
-
-
Save xgeek-net/eac33b70c28f56b5cf62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
StaticResource sr = [SELECT Id, Body FROM StaticResource WHERE Name = 'MyJsonFile' LIMIT 1]; | |
String body = sr.Body.toString(); | |
System.assertEquals(body, '{"key1":"value1","key2":"value2"}'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment