Last active
October 13, 2015 15:12
-
-
Save tomoyamkung/3d5f3b3abcaf98ef13e0 to your computer and use it in GitHub Desktop.
[Eclipse,JUnit]JUnit のテストメソッド作成テンプレート
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="java-members" deleted="false" description="" enabled="true" name="test_abnormal">@${testType:newType(org.junit.Test)} | |
public void 異常系_${testName}() throws Exception { | |
${staticImport:importStatic('org.junit.Assert.*')}${cursor}// setup | |
// exercise | |
// verify | |
}</template><template autoinsert="true" context="java-members" deleted="false" description="" enabled="true" name="test_normal">@${testType:newType(org.junit.Test)} | |
public void 正常系_${testName}() throws Exception { | |
${staticImport:importStatic('org.junit.Assert.*')}${cursor}// setup | |
// exercise | |
// verify | |
}</template><template autoinsert="true" context="java-members" deleted="false" description="" enabled="true" name="test_semi_normal">@${testType:newType(org.junit.Test)} | |
public void 準正常系_${testName}() throws Exception { | |
${staticImport:importStatic('org.junit.Assert.*')}${cursor}// setup | |
// exercise | |
// verify | |
}</template></templates> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment