Neeme Praks wrote:
> 
> I need some configuration data in my TestCases.
> 
> What would be the best way to get this?
> * First solution would be to write my own configuration loading code using
> DefaultConfigurationBuilder. Not very re-usable...
> * Second, and more preferable solution would be to add configure() method to
> the ExcaliburTestCase class. The default implementation would be to do
> nothing. That way we would achieve backward-compatibility and the people who
> need to configure their TestCases can get their hands on some configuration
> data by overriding the configure() method. Most probably the configuration
> data that would be passed to the TestCase would be a separate element in
> .xtest file.
> 
> Something like this:
> <testcase>
>     .... all the usual stuff used by ExcaliburTestCase ....
>     <configuration>
>         .... all the stuff passed to the configure()  method ....
>     </configuration>
> </testcase>
> 
> Would this be ok, if I would implement this?

Don't do anything!  It is already taken care of.  ExcaliburTestCase reads the
configuration information and builds your ComponentManager heirarchy for you.
All you have to do us use it to get your Component instances, and test them.

> 
> Neeme
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


-- 

"Those who would trade liberty for
 temporary security deserve neither"
                - Benjamin Franklin

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to