Created
August 23, 2011 13:52
-
-
Save MartinAhrer/1165173 to your computer and use it in GitHub Desktop.
Eclipse Java editor templates
This file contains hidden or 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
public ${enclosing_type} ${name} (${}) { | |
${cursor} | |
return this; | |
} |
This file contains hidden or 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
@${testType:newType(org.junit.Test)} | |
public void test${name}() throws Exception { | |
${staticImport:importStatic('org.junit.Assert.*')} | |
//given | |
${cursor} | |
//when | |
//then | |
} |
This file contains hidden or 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
private final static Logger LOGGER = LoggerFactory.getLogger(${enclosing_type}.class); |
This file contains hidden or 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
@${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