diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-02-06 15:05:39 +0100 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-02-06 15:05:39 +0100 |
commit | 77b6442c29dee93cf449c3b4e4178d8cf1c99617 (patch) | |
tree | 31df387a32b4efe2f159967b8b04389f3e701988 /config-model/src/test/java/com/yahoo | |
parent | a23fc5e8d4e9ef0f737041f6d4f2ebc50b38c40b (diff) | |
parent | 384475dbec8d3a525a7ea7c0d14d65b75a529689 (diff) |
Merge branch 'master' into bratseth/typecheck-all
Diffstat (limited to 'config-model/src/test/java/com/yahoo')
-rw-r--r-- | config-model/src/test/java/com/yahoo/searchdefinition/processing/RankingExpressionWithTensorFlowTestCase.java | 11 |
1 files changed, 11 insertions, 0 deletions
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 464772fc10d..58af8daf1b5 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 @@ -399,6 +399,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<ApplicationFile> listFiles(PathFilter filter) { if ( ! isDirectory()) return Collections.emptyList(); return Arrays.stream(file.listFiles()).filter(f -> filter.accept(Path.fromString(f.toString()))) |