aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-07-31 21:23:03 +0900
committermattn <mattn.jp@gmail.com>2013-07-31 21:23:03 +0900
commit1bd840e315cedcbd66b1e8b461898271073cf717 (patch)
tree1003871bf2111079ced965191e04a9130f509a2e /template
parent4558f939fc4607cffa166c45267113f2544baa24 (diff)
downloadvim-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.java22
-rw-r--r--template/java/snip-test-func.java4
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_}}
+}