StandAloneScenarioScript extends Script { List<Map<String, Object>> getScenarioParameterList() { return Collections.unmodifiableList(_scenarioParamList); } StandAloneScenarioScript(); void view(Closure<?> body); void shockGrid(Closure<?> body); void shockList(Closure<?> body); void scenarios(Closure<?> body);  }
@Test public void initialize() { String scriptText = "shockList {\n" + " foo = [100.bp, 20.pc, 1.y]\n" + "}"; StandAloneScenarioScript script = createScript(scriptText); List<Map<String,Object>> params = script.getScenarioParameterList(); assertEquals(3, params.size()); assertEquals(new BigDecimal("0.01"), params.get(0).get(FOO)); assertEquals(new BigDecimal("0.2"), params.get(1).get(FOO)); assertEquals(Period.ofYears(1), params.get(2).get(FOO)); }