From 30a2d3e88529bc5a86ad6c53c8de35e4a71fbac3 Mon Sep 17 00:00:00 2001 From: Jon Bratseth Date: Mon, 5 Feb 2018 22:54:13 +0100 Subject: Handle small constants --- .../processing/RankingExpressionWithTensorFlowTestCase.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'config-model/src/test/java/com/yahoo') diff --git a/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionWithTensorFlowTestCase.java b/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionWithTensorFlowTestCase.java index 5203e686681..7246b22b0f8 100644 --- a/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionWithTensorFlowTestCase.java +++ b/config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionWithTensorFlowTestCase.java @@ -398,6 +398,17 @@ public class RankingExpressionWithTensorFlowTestCase { } } + @Override + public ApplicationFile appendFile(String value) { + try { + IOUtils.writeFile(file, value, true); + return this; + } + catch (IOException e) { + throw new UncheckedIOException(e); + } + } + @Override public List listFiles(PathFilter filter) { if ( ! isDirectory()) return Collections.emptyList(); -- cgit v1.2.3