Skip to content

Commit

Permalink
fix java tests and rm dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
erdos committed Nov 16, 2023
1 parent 14c9309 commit 0b0c4b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
7 changes: 0 additions & 7 deletions java-src/io/github/erdos/stencil/impl/ClojureHelper.java
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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");
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -107,6 +107,11 @@ public void close() {
// NOP

}

@Override
public EvaluatedDocument render(Map<String, PreparedFragment> fragments, FunctionEvaluator function, TemplateData templateData) {
throw new RuntimeException("not implemented");
}
};
}
}

0 comments on commit 0b0c4b2

Please sign in to comment.