Skip to content

Commit c7c161e

Browse files
committed
Update SDMXVTLWorkflowTest.java
1 parent b3062cb commit c7c161e

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

vtl-sdmx/src/test/java/fr/insee/vtl/SDMXVTLWorkflowTest.java

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,15 @@ public class SDMXVTLWorkflowTest {
2626

2727
@BeforeEach
2828
public void setUp() {
29+
SparkSession.builder()
30+
.appName("test")
31+
.master("local")
32+
.getOrCreate();
2933

3034
ScriptEngineManager mgr = new ScriptEngineManager();
3135
engine = mgr.getEngineByExtension("vtl");
36+
37+
engine.put(VtlScriptEngine.PROCESSING_ENGINE_NAMES, "spark");
3238
}
3339

3440
@Disabled
@@ -54,16 +60,6 @@ void testRefFromRepo() {
5460

5561
@Test
5662
void testGetEmptyDataset() {
57-
58-
SparkSession.builder()
59-
.appName("test")
60-
.master("local")
61-
.getOrCreate();
62-
63-
ScriptEngineManager mgr = new ScriptEngineManager();
64-
ScriptEngine engine = mgr.getEngineByExtension("vtl");
65-
engine.put(VtlScriptEngine.PROCESSING_ENGINE_NAMES, "spark");
66-
6763
ReadableDataLocation rdl = new ReadableDataLocationTmp("src/test/resources/DSD_BPE_CENSUS.xml");
6864
SDMXVTLWorkflow sdmxVtlWorkflow = new SDMXVTLWorkflow(engine, rdl, Java8Helpers.mapOf());
6965
Map<String, Dataset> emptyDatasets = sdmxVtlWorkflow.getEmptyDatasets();

0 commit comments

Comments
 (0)