Skip to content

Instantly share code, notes, and snippets.

@stefanbirkner
Created March 13, 2012 10:19
Show Gist options
  • Select an option

  • Save stefanbirkner/2028005 to your computer and use it in GitHub Desktop.

Select an option

Save stefanbirkner/2028005 to your computer and use it in GitHub Desktop.
IntelliJ Idea Template for a JUnit4 test.
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
import static org.junit.rules.ExpectedException.none;
public class ${NAME} {
@Rule
public final ExpectedException thrown = none();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment