diff options
author | mattn <mattn.jp@gmail.com> | 2013-07-31 21:23:03 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-07-31 21:23:03 +0900 |
commit | 1bd840e315cedcbd66b1e8b461898271073cf717 (patch) | |
tree | 1003871bf2111079ced965191e04a9130f509a2e /template | |
parent | 4558f939fc4607cffa166c45267113f2544baa24 (diff) | |
download | vim-sonictemplate-1bd840e315cedcbd66b1e8b461898271073cf717.tar.gz vim-sonictemplate-1bd840e315cedcbd66b1e8b461898271073cf717.tar.bz2 vim-sonictemplate-1bd840e315cedcbd66b1e8b461898271073cf717.zip |
Add jUnit tempalte for java
Diffstat (limited to 'template')
-rw-r--r-- | template/java/base-test.java | 22 | ||||
-rw-r--r-- | template/java/snip-test-func.java | 4 |
2 files changed, 26 insertions, 0 deletions
diff --git a/template/java/base-test.java b/template/java/base-test.java new file mode 100644 index 0000000..643cbd5 --- /dev/null +++ b/template/java/base-test.java @@ -0,0 +1,22 @@ +import static org.junit.Assert.*; + +import org.junit.Test; + +/** + * {{_name_}} + */ +public class {{_name_}} { + @Test + public void test{{_input_:func}}() { + {{_cursor_}} + } + + @Before + public void setup() { + } + + @After + public void tearDown() { + } +} +{{_filter_:test}} diff --git a/template/java/snip-test-func.java b/template/java/snip-test-func.java new file mode 100644 index 0000000..d702e30 --- /dev/null +++ b/template/java/snip-test-func.java @@ -0,0 +1,4 @@ +@Test +public void test{{_input_:func}}() { + {{_cursor_}} +} |