Last active
August 29, 2015 14:03
-
-
Save froland/1007f1fdab6bdda2d466 to your computer and use it in GitHub Desktop.
IntelliJ JUnit4 live templates
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
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.equalTo($expected$));$END$ |
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
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.is(false));$END$ |
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
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.nullValue());$END$ |
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
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.notNullValue());$END$ |
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
org.junit.Assert.assertThat($actual$, org.hamcrest.CoreMatchers.is(true));$END$ |
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
/* TO IMPLEMENT frroland */ | |
throw new java.lang.UnsupportedOperationException("not implemented yet"); |
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
@org.junit.Before | |
public void setup() { | |
$END$ | |
} |
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
@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