Added JUnit asserts and fail snippets
This commit is contained in:
parent
a84f6f3819
commit
0513b65541
@ -135,6 +135,24 @@ snippet errln
|
|||||||
## Exception Handling
|
## Exception Handling
|
||||||
snippet as
|
snippet as
|
||||||
assert ${1:test} : "${2:Failure message}";
|
assert ${1:test} : "${2:Failure message}";
|
||||||
|
snippet ae
|
||||||
|
assertEquals("${1:Failure message}", ${2:expected}, ${3:actual});
|
||||||
|
snippet aae
|
||||||
|
assertArrayEquals("${1:Failure message}", ${2:expecteds}, ${3:actuals});
|
||||||
|
snippet af
|
||||||
|
assertFalse("${1:Failure message}", ${2:condition});
|
||||||
|
snippet at
|
||||||
|
assertTrue("${1:Failure message}", ${2:condition});
|
||||||
|
snippet an
|
||||||
|
assertNull("${1:Failure message}", ${2:object});
|
||||||
|
snippet ann
|
||||||
|
assertNotNull("${1:Failure message}", ${2:object});
|
||||||
|
snippet ass
|
||||||
|
assertSame("${1:Failure message}", ${2:expected}, ${3:actual});
|
||||||
|
snippet asns
|
||||||
|
assertNotSame("${1:Failure message}", ${2:expected}, ${3:actual});
|
||||||
|
snippet fa
|
||||||
|
fail("${1:Failure message}");
|
||||||
snippet ca
|
snippet ca
|
||||||
catch(${1:Exception} ${2:e}) ${0}
|
catch(${1:Exception} ${2:e}) ${0}
|
||||||
snippet thr
|
snippet thr
|
||||||
|
Loading…
Reference in New Issue
Block a user