Skip to content

Instantly share code, notes, and snippets.

@froland
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save froland/1007f1fdab6bdda2d466 to your computer and use it in GitHub Desktop.
Save froland/1007f1fdab6bdda2d466 to your computer and use it in GitHub Desktop.
IntelliJ JUnit4 live templates
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.equalTo($expected$));$END$
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.is(false));$END$
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.nullValue());$END$
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.notNullValue());$END$
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.is(true));$END$
/* TO IMPLEMENT frroland */
throw new java.lang.UnsupportedOperationException("not implemented yet");
@org.junit.Before
public void setup() {
$END$
}
@org.junit.Test
public void $method_name$() {
$END$
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment