Hi there,
I'm starting a small project which uses dependent services, etc. and I'm
trying to figure out a
good way to unit test the application in different aspects, such as basic
method testing, integration tests
and user tests.
Is there anyone who has tried to use the interface test case framework in http://groboutils.sourceforge.net together with AbstractMerlinTestCases? If so, how did you manage to delay the instantiation of Interface until merlin have initialized the implementations to test?
Sorry - don't know anything about grobutils.
The kernel inside the test case handles the instantiation of components before they are exposed. Also keep in mind that the components backing the service are never exposed directly to the consumer - so your only looking at the service interface.
How do you specify that some unit tests should use stubs, while other tests
should use the actual service
which the other is dependent on?
Create a stub component implementation.
Is it possible to specify it in different block.xml files, or is it done programmatically?
You can specify whatever you want as the block source by including a merlin.properties file in ${basedir} and setting the merlin.deployment parameter. See the following page for a description of merlin properties:
http://avalon.apache.org/merlin/merlin/kernel/properties.html
I have read in previous posts that the turbine-fulcrum component is using maven, and also have unit tests which implements AbstractMerlinTestCases. I'm about to look into the framework, but I'm thankful for all examples of merlin unit tests :).
From memory the Fulcrum tests still use 3.0 and a lot of improvements have been made to the abstract unit test since then. Take a look at the setup in tutorials/hello - its basic but you should get the idea.
Cheers, Stephen.
Regards, Tobias
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
|------------------------------------------------| | Magic by Merlin | | Production by Avalon | | | | http://avalon.apache.org/merlin | | http://dpml.net/merlin/distributions/latest | |------------------------------------------------|
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]