From c7c161e22ab51dd13a453ea14fb40f344e5f79d7 Mon Sep 17 00:00:00 2001 From: Nicolas Laval Date: Tue, 21 Jan 2025 21:12:25 +0100 Subject: [PATCH] Update SDMXVTLWorkflowTest.java --- .../java/fr/insee/vtl/SDMXVTLWorkflowTest.java | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/vtl-sdmx/src/test/java/fr/insee/vtl/SDMXVTLWorkflowTest.java b/vtl-sdmx/src/test/java/fr/insee/vtl/SDMXVTLWorkflowTest.java index 7b27c9a4..8c243520 100644 --- a/vtl-sdmx/src/test/java/fr/insee/vtl/SDMXVTLWorkflowTest.java +++ b/vtl-sdmx/src/test/java/fr/insee/vtl/SDMXVTLWorkflowTest.java @@ -26,9 +26,15 @@ public class SDMXVTLWorkflowTest { @BeforeEach public void setUp() { + SparkSession.builder() + .appName("test") + .master("local") + .getOrCreate(); ScriptEngineManager mgr = new ScriptEngineManager(); engine = mgr.getEngineByExtension("vtl"); + + engine.put(VtlScriptEngine.PROCESSING_ENGINE_NAMES, "spark"); } @Disabled @@ -54,16 +60,6 @@ void testRefFromRepo() { @Test void testGetEmptyDataset() { - - SparkSession.builder() - .appName("test") - .master("local") - .getOrCreate(); - - ScriptEngineManager mgr = new ScriptEngineManager(); - ScriptEngine engine = mgr.getEngineByExtension("vtl"); - engine.put(VtlScriptEngine.PROCESSING_ENGINE_NAMES, "spark"); - ReadableDataLocation rdl = new ReadableDataLocationTmp("src/test/resources/DSD_BPE_CENSUS.xml"); SDMXVTLWorkflow sdmxVtlWorkflow = new SDMXVTLWorkflow(engine, rdl, Java8Helpers.mapOf()); Map emptyDatasets = sdmxVtlWorkflow.getEmptyDatasets();