excilys/gatling — pull request #740 by pdalpra (2012-09-24 20:29:40+00:00)
Title: Pass percentiles and range bounds as parameters in FileDataReader's constructor, bring back all FileDataReaderSpec's tests

I know it can look messy at first sight, but with the current architecture :
* To bring back the tests, percentiles and range bounds values must not be "hardcoded" to configuration file's values, we need to pass them as a parameter "somewhere"
* The only way to pass percentiles and range bounds to all functions that needs them is to pass them to ResultsHolder
* The only way to pass new parameters to ResultsHolder is to pass new parameters to FileDataReader's constructor.
* Doing so, I had to change the FileDataReader's dynamic instantiation (using reflection), as Java knows little of Scala's default method parameters...

It's the only solution I could come up with, the other solution would be to refactor, maybe quite heavily, the newly rewritten FileDataReader.