From 0b0c4b2f69d8804ed1c9809d75fd68d62b22d9ce Mon Sep 17 00:00:00 2001 From: janos erdos Date: Fri, 17 Nov 2023 00:07:24 +0100 Subject: [PATCH] fix java tests and rm dead code --- .../io/github/erdos/stencil/impl/ClojureHelper.java | 7 ------- .../stencil/impl/DirWatcherTemplateFactoryTest.java | 13 +++++++++---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/java-src/io/github/erdos/stencil/impl/ClojureHelper.java b/java-src/io/github/erdos/stencil/impl/ClojureHelper.java index 8f4c98c4..12b39bca 100644 --- a/java-src/io/github/erdos/stencil/impl/ClojureHelper.java +++ b/java-src/io/github/erdos/stencil/impl/ClojureHelper.java @@ -1,7 +1,6 @@ package io.github.erdos.stencil.impl; import clojure.lang.IFn; -import clojure.lang.Keyword; import clojure.lang.RT; import clojure.lang.Symbol; @@ -13,12 +12,6 @@ public final class ClojureHelper { private ClojureHelper() {} - enum Keywords { - DATA, FUNCTION, FRAGMENTS, TEMPLATE; - - public final Keyword kw = Keyword.intern(name().toLowerCase().replace('_', '-')); - } - // requires stencil.process namespace so stencil is loaded. static { final IFn req = RT.var("clojure.core", "require"); diff --git a/java-test/io/github/erdos/stencil/impl/DirWatcherTemplateFactoryTest.java b/java-test/io/github/erdos/stencil/impl/DirWatcherTemplateFactoryTest.java index 9df2a480..6e0f9d23 100644 --- a/java-test/io/github/erdos/stencil/impl/DirWatcherTemplateFactoryTest.java +++ b/java-test/io/github/erdos/stencil/impl/DirWatcherTemplateFactoryTest.java @@ -1,21 +1,21 @@ package io.github.erdos.stencil.impl; -import io.github.erdos.stencil.PrepareOptions; +import io.github.erdos.stencil.*; +import io.github.erdos.stencil.functions.FunctionEvaluator; import org.junit.After; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; -import io.github.erdos.stencil.PreparedTemplate; -import io.github.erdos.stencil.TemplateFactory; -import io.github.erdos.stencil.TemplateVariables; +import javax.naming.OperationNotSupportedException; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.time.LocalDateTime; import java.util.HashSet; +import java.util.Map; import java.util.Set; import static org.junit.Assert.assertFalse; @@ -107,6 +107,11 @@ public void close() { // NOP } + + @Override + public EvaluatedDocument render(Map fragments, FunctionEvaluator function, TemplateData templateData) { + throw new RuntimeException("not implemented"); + } }; } }