Hi there,


ARRGGHH this problem steal me more then 5 hours and I havent still a solution. ;-(
Some work around's but I'm not really happy with it.


I wish to implement a class that contains some standard methods I need to test my application, e.g database rester, dummy data creator etc..
I have a j2ee app with stuts ui.


So I wish to create child of *CactusStrutsTestCase* called MyHelpTestCase.
So far no problem! But If i wish to extends MyHelpTestCase i got a Exception.


[junit] Exception in constructor: testSubscribeDocumentNotification (junit.framework.AssertionFailedError: You are overriding the setUp() method without calling super.setUp(). You must call the superclass setUp() method in your TestCase subclass to ensure proper initialization.
[junit] at servletunit.struts.CactusStrutsTestCase.init(CactusStrutsTestCase.java:75)


Of cource I have in my contructor a super.setup() call but this does not help.

Someone has any idea how to solver this problem and save my last nervs!
Thanks!


Stefan


P.S. Of cource I had study the CactusStrutsTestCase code, but from my point of view the super.setup() call should fix the problem.
http://cvs.sourceforge.net/viewcvs.py/strutstestcase/strutstestcase/src/servletunit/struts/CactusStrutsTestCase.java?view=markup











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



Reply via email to