From 1bd840e315cedcbd66b1e8b461898271073cf717 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 31 Jul 2013 21:23:03 +0900 Subject: Add jUnit tempalte for java --- template/java/base-test.java | 22 ++++++++++++++++++++++ template/java/snip-test-func.java | 4 ++++ 2 files changed, 26 insertions(+) create mode 100644 template/java/base-test.java create mode 100644 template/java/snip-test-func.java (limited to 'template') 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_}} +} -- cgit v1.2.3-54-g00ecf