From 88d22d464e313195899a756db7d494d057b800ec Mon Sep 17 00:00:00 2001 From: "pabs@pablotron.org" Date: Thu, 18 Dec 2014 15:24:39 -0500 Subject: add java test --- java/pablotron/luigi/Test.java | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 java/pablotron/luigi/Test.java (limited to 'java/pablotron/luigi') diff --git a/java/pablotron/luigi/Test.java b/java/pablotron/luigi/Test.java new file mode 100644 index 0000000..6553939 --- /dev/null +++ b/java/pablotron/luigi/Test.java @@ -0,0 +1,20 @@ +package pablotron.luigi; + +import java.util.Map; +import java.util.HashMap; +import pablotron.luigi.Template; +import pablotron.luigi.LuigiError; + +public final class Test { + private static final String TEMPLATE = "hello %{name | uc}"; + + private static final Map args = new HashMap() {{ + put("name", "paul"); + }}; + + public static void main(String cli_args[]) throws Exception { + final Template t = new Template(TEMPLATE); + + System.out.println(t.run(args)); + } +}; -- cgit v1.2.3