Hi,

I am trying to create an integration test case using AbstractMerlinTestCase 
but it fails with a ClassNotFoundException for an external jar file, which 
is declared inside block.xml.

The test is proceeding a bit further when I add the jar file inside the 
dependencies element inside project.xml, but then I get a ClassCastException

when doing:

   TheClass theClass = (TheClass) resolve( "/MyProject/myContainer" ); 

even though the object returned by resolve actually is of the 'TheClass'
type
(as I verified in a log message).

The project.xml includes the reference to the block.xml as stated in:
http://avalon.apache.org/merlin/starting/advanced/unit/index.html

Is it perhaps a classloader problem, where part of the test is getting its
dependent classes from project.xml and part of it from the supplied
block.xml?

Where does AbstractMerlinTestCase read it's dependencies from?

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

Reply via email to