Torbj�rn Karlsson wrote:

Hi list!

I have been working with the AbstractMerlinTestCase and I want to be able to switch between different Configuration objects for different testcases. I know I can add merlin.override to merlin.properties, but that means using the same config.xml for all my testcases and that I don�t want to do.

Ideas about this anyone??


Sounds to me like you need to be able to override the kernel criteria during the unit test setup sequence. As things stand this is not possible. However, I don't see why it would not be possible (with revisions to the AMTC implementation) to supply a map of overriding parameters as part of the constructor, which in turn would be applied by the AMTC prior to the invocation of

m_kernel = factory.create( criteria );

E.g. something like:

   public MyTestCase( String name )
   {
       super( name, MY_STATIC_OVERRIDE_MAP );
   }

The AMTC could then apply these parameters to the kernel criteria just prior to the kernel instantiation.

Stephen.

--
|------------------------------------------------|
| Magic by Merlin                                |
| Production by Avalon                           |
|                                                |
| http://avalon.apache.org/merlin                |
| http://dpml.net/                               |
|------------------------------------------------|


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



Reply via email to