Not clear what you're trying to do. You can define as many instances of ParameterConverter as you want, even relating to the same Type, but only the first one accepted will be used.
Can you share your use case in the form of a project with a scenario? > On 16 May 2014, at 20:40, Frank Pedroza <[email protected]> wrote: > > Is it possible to have multiple ParameterConverters of the same type? I ask > because I have the following and it doesn't seem to be working. > > public Configuration getConfiguration() > { > Configuration config = new MostUsefulConfiguration() > .useStoryParser(new GherkinStoryParser()) > .useStoryControls( > new StoryControls() > .doDryRun(TestConfiguration.getInstance().doDryRun()) > .doSkipScenariosAfterFailure(false)) > > .useStepPatternParser(new RegexPrefixCapturingPatternParser()) > .useStoryLoader(new > LoadFromClasspath(this.getClass().getClassLoader())) > .useStoryReporterBuilder( > new StoryReporterBuilder() > .withFormats(Format.CONSOLE, Format.TXT, Format.STATS, > WebDriverHtmlOutputWithImg.WEB_DRIVER_HTML_WITH_IMG) > .withFailureTrace(true) > .withReporters(new LoggingStoryReporter())); > > config.parameterConverters().addConverters( > new DateConverter(new SimpleDateFormat("yyyy-MM-dd")), > new ParameterConverters.BooleanConverter("will", "will not") // add > another boolean converter > ); > > return config; > } > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
