Created
September 12, 2019 15:51
-
-
Save Confirm4Crit/1b637a039cff70d1acee75b29a1a0401 to your computer and use it in GitHub Desktop.
Apex Snippets
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
| { | |
| // Place your snippets for apex here. Each snippet is defined under a snippet name and has a prefix, body and | |
| // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the | |
| // same ids are connected. | |
| // Example: | |
| // "Print to console": { | |
| // "prefix": "log", | |
| // "body": [ | |
| // "console.log('$1');", | |
| // "$2" | |
| // ], | |
| // "description": "Log output to console" | |
| // } | |
| "System Debug": { | |
| "prefix": "sd", | |
| "body": [ | |
| "System.Debug($1);" | |
| ], | |
| "description": "Log output to console" | |
| }, | |
| "System Assert": { | |
| "prefix": "sa", | |
| "body": [ | |
| "System.assert($0);" | |
| ], | |
| "description": "Assert a condition in a unit test" | |
| }, | |
| "System Assert Equals": { | |
| "prefix": "sae", | |
| "body": [ | |
| "System.assertEquals($0);" | |
| ], | |
| "description": "Assert that a value is an expected value in a unit test" | |
| }, | |
| "System Assert Equals Null": { | |
| "prefix": "san", | |
| "body": [ | |
| "System.assertEquals(null, $0);" | |
| ], | |
| "description": "Assert that a value is null in a unit test" | |
| }, | |
| "System Assert Not Equals": { | |
| "prefix": "sane", | |
| "body": [ | |
| "System.assertNotEquals($0);" | |
| ], | |
| "description": "Assert that a value is not an expected value in a unit test" | |
| }, | |
| "System Assert Equals Not Equals Null": { | |
| "prefix": "sann", | |
| "body": [ | |
| "System.assertNotEquals(null, $0);" | |
| ], | |
| "description": "Assert that a value is not null in a unit test " | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment