File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
vtl-sdmx/src/test/java/fr/insee/vtl Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments