From 976963a5bdb957817389c6602bc5203e4eac5a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Attila=20M=C3=A9sz=C3=A1ros?= Date: Fri, 29 Mar 2024 20:04:59 +0100 Subject: [PATCH] wip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Attila Mészáros --- .../resourceglue/templating/GenericTemplateHandler.java | 4 ++-- src/test/java/io/csviri/operator/resourceglue/GlueTest.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/csviri/operator/resourceglue/templating/GenericTemplateHandler.java b/src/main/java/io/csviri/operator/resourceglue/templating/GenericTemplateHandler.java index 84a00d4..5621e59 100644 --- a/src/main/java/io/csviri/operator/resourceglue/templating/GenericTemplateHandler.java +++ b/src/main/java/io/csviri/operator/resourceglue/templating/GenericTemplateHandler.java @@ -22,8 +22,8 @@ public String processTemplate(String template, Glue primary, Context context) { Template hello = engine.parse(template); - - return hello.data(createDataWithResources(primary, context)).render(); + var data = createDataWithResources(primary, context); + return hello.data(data).render(); } @SuppressWarnings("rawtypes") diff --git a/src/test/java/io/csviri/operator/resourceglue/GlueTest.java b/src/test/java/io/csviri/operator/resourceglue/GlueTest.java index 06338a2..f7ad1fd 100644 --- a/src/test/java/io/csviri/operator/resourceglue/GlueTest.java +++ b/src/test/java/io/csviri/operator/resourceglue/GlueTest.java @@ -121,7 +121,7 @@ void stringTemplate() { @Test void simpleConcurrencyTest() { - int num = 10; + int num = 1; List glueList = testWorkflowList(num); glueList.forEach(this::create);