Skip to content

Instantly share code, notes, and snippets.

@rwoeber
Created January 3, 2015 13:22
Show Gist options
  • Select an option

  • Save rwoeber/8f311747d70a2fe827c7 to your computer and use it in GitHub Desktop.

Select an option

Save rwoeber/8f311747d70a2fe827c7 to your computer and use it in GitHub Desktop.
IntelliJ IDEA junit4-Template
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import static org.junit.Assert.*;
@RunWith(JUnit4.class)
public class ${NAME} {
@Rule
public ExpectedException exception = ExpectedException.none();
${BODY}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment