Last active
August 29, 2015 14:16
-
-
Save bcalmac/ad4fdccb0d1287f1452d to your computer and use it in GitHub Desktop.
IntelliJ live templates for JUnit
This file contains 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
# Applicable in : Java statement | |
# Reformat according to style : true | |
# Use static import if possible: true | |
# Shorten FQ names : true | |
# | |
# Do nothing about "Edit variables". I wasn't able to define defaults like "expected" and "actual". | |
org.junit.Assert.assertEquals($EXPECTED$, $ACTUAL$); | |
$END$ | |
org.junit.Assert.assertTrue($ACTUAL$); | |
$END$ | |
org.junit.Assert.assertFalse($ACTUAL$); | |
$END$ | |
org.junit.Assert.assertNull($ACTUAL$); | |
$END$ | |
org.junit.Assert.assertNotNull($ACTUAL$); | |
$END$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment