@@ -252,13 +252,14 @@ public void testVersion() throws IOException {
252252 @ Test
253253 public void testParameters () {
254254 final String script = "" + //
255- "% @ LogService(required = false) log\n " + //
256- "% @ int(label=\" Slider Value\" , softMin=5, softMax=15, " + //
255+ "#@ LogService (required = false) log\n " + //
256+ "#@ int (label=\" Slider Value\" , softMin=5, softMax=15, " + //
257257 "stepSize=3, value=11, style=\" slider\" ) sliderValue\n " + //
258- "% @ String(persist = false, family='Carnivora', " + //
258+ "#@ String (persist = false, family='Carnivora', " + //
259259 "choices={'quick brown fox', 'lazy dog'}) animal\n " + //
260- "% @String(visibility=MESSAGE) msg\n " + //
261- "% @BOTH java.lang.StringBuilder buffer" ;
260+ "#@ Double (autoFill = false) notAutoFilled\n " + //
261+ "#@ String (visibility=MESSAGE) msg\n " + //
262+ "#@BOTH java.lang.StringBuilder buffer" ;
262263
263264 final ScriptInfo info =
264265 new ScriptInfo (context , "params.bsizes" , new StringReader (script ));
@@ -280,6 +281,9 @@ public void testParameters() {
280281 null , null , null , null , null , null , null , null , animalChoices , animal );
281282 assertEquals (animal .get ("family" ), "Carnivora" ); // test custom attribute
282283
284+ final ModuleItem <?> notAutoFilled = info .getInput ("notAutoFilled" );
285+ assertFalse (notAutoFilled .isAutoFill ());
286+
283287 final ModuleItem <?> msg = info .getInput ("msg" );
284288 assertSame (ItemVisibility .MESSAGE , msg .getVisibility ());
285289
@@ -288,7 +292,7 @@ public void testParameters() {
288292 null , null , null , null , null , null , null , null , noChoices , buffer );
289293
290294 int inputCount = 0 ;
291- final ModuleItem <?>[] inputs = { log , sliderValue , animal , msg , buffer };
295+ final ModuleItem <?>[] inputs = { log , sliderValue , animal , notAutoFilled , msg , buffer };
292296 for (final ModuleItem <?> inItem : info .inputs ()) {
293297 assertSame (inputs [inputCount ++], inItem );
294298 }
@@ -404,7 +408,7 @@ public List<String> getExtensions() {
404408 }
405409 }
406410
407- // -- Test script langauge --
411+ // -- Test script language --
408412
409413 private static class BindingSizesEngine extends AbstractScriptEngine {
410414
0 commit comments