1 Apr 2010 10:45
[jira] Updated: (JBEHAVE-254) Review story/steps configuration
[
http://jira.codehaus.org/browse/JBEHAVE-254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mauro Talevi updated JBEHAVE-254:
---------------------------------
Description:
Story and steps configuration should be reviewed to maintain what worked well and remove what did not.
Criterias for refactor:
- Adopt similar paradigm for story and steps configuration
- Elements of the configuration should always have default values and should
be overridable singularly, after instantiation
- Immutability of configuration can be obtained by decorating a configuration and disabling the use*
methods.
- Default configurations should always be available to runners and should not be required as parameters in
super() invocations.
Have a base abstract class [Story|Steps]Configuration that holds the elements of the configuration,
injectable both via constructor and after instantiation via use* methods.
Have a MostUseful[Story|Steps]Configuration that holds the default configuration that can be used as
base for overriding individual elements.
Have an Immutable[Story|Steps]Configuration throwing an exception when use* methods invoked.
was:
Story configuration should be possible by composition rather than inheritance.
(Continue reading)
RSS Feed