Skip to content

Instantly share code, notes, and snippets.

@ffbit
Last active October 9, 2015 02:58
Show Gist options
  • Select an option

  • Save ffbit/3427915 to your computer and use it in GitHub Desktop.

Select an option

Save ffbit/3427915 to your computer and use it in GitHub Desktop.
Eclipse Preferences -> Java -> Editor -> Templates
@Before
public void ${setUp}() throws Exception {
${import:import('org.junit.Before')}${cursor}
}
@Test
public void itShould${DoSomething}() throws Exception {
${import:import('org.junit.Test')}${cursor}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment