Skip to content

Instantly share code, notes, and snippets.

@bcalmac
Last active August 29, 2015 14:16
Show Gist options
  • Save bcalmac/ad4fdccb0d1287f1452d to your computer and use it in GitHub Desktop.
Save bcalmac/ad4fdccb0d1287f1452d to your computer and use it in GitHub Desktop.
IntelliJ live templates for JUnit
# 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