2.2.5.6 release notes
2.2.5.6
- Apex postfix completion template enhancements
- Added support for creation of custom Apex postfix completion templates. A demonstration video is available here.
- Added the following new Apex postfix completion templates:
- Test assertions
at
- Wraps the expression inAssert.isTrue()
.af
- Wraps the expression inAssert.isFalse()
.ae
- Wraps the expression inAssert.areEqual()
.ane
- Wraps the expression inAssert.areNotEqual()
.aio
- Wraps the expression inAssert.isInstanceOfType()
.anio
- Wraps the expression inAssert.isNotInstanceOfType()
.an
- Wraps the expression inAssert.isNull()
.ann
- Wraps the expression inAssert.isNotNull()
.
- Statements
if
- Adds a check verifying that a boolean expression istrue
.else
- Adds a check verifying that a boolean expression isfalse
.switch
- Adds aswitch
statement for values of the expression.return
- Returns the expression from the containing method.throw
- Throws theException
type expression.try
- Inserts a statement in atry
-catch
block.while
- Iterates while the condition istrue
with a pre-iteration check.do
- Iterates while the condition istrue
with a post-iteration check.runAs
- Creates aSystem.runAs()
block for theUser
.itme
- Iterates key/value pairs of aMap
.
- Debug logging
sdv
- Logs the expression usingSystem.debug()
asexpr=<expr>
.sdvj
/sdjv
- Logs the JSON-serialized expression usingSystem.debug()
asexpr=<expr>
. Much appreciation to Chris Baker for the suggestion!
- Test assertions
A list of all bundled Apex postfix completion templates can be found here.
- Added the following new Apex live templates for test assertions using
System.Assert
:at
-Assert.isTrue()
.af
-Assert.isFalse()
.ae
-Assert.areEqual()
.ane
-Assert.areNotEqual()
.aio
-Assert.isInstanceOfType()
.anio
-Assert.isNotInstanceOfType()
.an
-Assert.isNull()
.ann
-Assert.isNotNull()
.fail
-Assert.fail('')
(changed fromSystem.assert(false, '')
).
A list of all bundled live templates can be found here.
- Other minor fixes and improvements.