Skip to content

Instantly share code, notes, and snippets.

@MartinAhrer
Created August 23, 2011 13:52
Show Gist options
  • Save MartinAhrer/1165173 to your computer and use it in GitHub Desktop.
Save MartinAhrer/1165173 to your computer and use it in GitHub Desktop.
Eclipse Java editor templates
public ${enclosing_type} ${name} (${}) {
${cursor}
return this;
}
@${testType:newType(org.junit.Test)}
public void test${name}() throws Exception {
${staticImport:importStatic('org.junit.Assert.*')}
//given
${cursor}
//when
//then
}
private final static Logger LOGGER = LoggerFactory.getLogger(${enclosing_type}.class);
@${testType:newType(org.testng.annotations.Test)}
public void test${name}() throws Exception {
${staticImport:importStatic('org.testng.Assert.*')}
//given
${cursor}
//when
//then
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment