aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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_}}
+}