Do you have a constructor in your lowest level concrete class (the one that inherits from MyHelpTestCase)? If so, do you call super.setup() in there? Do you also have the super.setup() call in MyHelpTestCase constructor?
Neil Canham KnowSense Limited Java and WebSphere Education Services ...yet more sense from Know Sense -----Original Message----- From: Stefan Groschupf [mailto:[EMAIL PROTECTED] Sent: 27 November 2003 16:55 To: cactus Users List Subject: extend a test 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/serv letunit/struts/CactusStrutsTestCase.java?view=markup --------------------------------------------------------------------- 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]
