diff options
author | pabs@pablotron.org <pabs@pablotron.org> | 2014-12-18 15:24:39 -0500 |
---|---|---|
committer | pabs@pablotron.org <pabs@pablotron.org> | 2014-12-18 15:24:39 -0500 |
commit | 88d22d464e313195899a756db7d494d057b800ec (patch) | |
tree | c120c97e20c47a9e645abff66794d3dcdfb2c821 /java | |
parent | 03992ddc32d9a4f441ba706c3a27eec2f209bc22 (diff) | |
download | luigi-template-88d22d464e313195899a756db7d494d057b800ec.tar.bz2 luigi-template-88d22d464e313195899a756db7d494d057b800ec.zip |
add java test
Diffstat (limited to 'java')
-rw-r--r-- | java/pablotron/luigi/Test.java | 20 |
1 files changed, 20 insertions, 0 deletions
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<String, String> args = new HashMap<String, String>() {{ + put("name", "paul"); + }}; + + public static void main(String cli_args[]) throws Exception { + final Template t = new Template(TEMPLATE); + + System.out.println(t.run(args)); + } +}; |