Additional info:
when maven runs the testcase, I can see that it completes successfully its
incarnation lifecycle. In addition, the following does NOT cause a problem.
Object o = resolve("/mycont/mycomp");
assertNotNull( o);
However, the following fails:
assertTrue( o instanceof MyComp);
In addition (and that is the strangest thing), if I System.out.println( o),
I get:
[EMAIL PROTECTED]
Hope that helps.
Mansour
:-)
-----Original Message-----
From: Mansour Raad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 09, 2004 3:11 PM
To: 'Avalon framework users'
Subject: Unit test cast problem
Hi,
I get a CastException on the resolve method in the following test code
snippet (Yes, /mycont/myconp is of type MuComp)
...
public void testMyComp() throws Exception {
final MyComp myComp = (MyComp)resolve("/mycont/mycomp");
assertNotNull(myComp)
}
...
Any help is much appreciated!
Mansour
:-)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]