Skip to content

Commit

Permalink
Update SDMXVTLWorkflowTest.java
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoLaval committed Jan 21, 2025
1 parent b3062cb commit c7c161e
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions vtl-sdmx/src/test/java/fr/insee/vtl/SDMXVTLWorkflowTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<String, Dataset> emptyDatasets = sdmxVtlWorkflow.getEmptyDatasets();
Expand Down

0 comments on commit c7c161e

Please sign in to comment.