Hi, i'm just starting to use the wonderfull world of extra work :) using the StrutsTestCase. But when I try the test a rather basic program then I get the error (see at the end of the page) that I'm overriding the setUp methode and, but I'm NOT overriding it??? I have tried to override the setUp methode, including the super.setUp() method, but he still gives the same error???
Has anyone had this problem before? Thx using JUnit 3.7 and Tested it on StrutsTestCase v1.8 and 1.9, but the same problem on each of the versions. --------- Begin code --------- import servletunit.struts.MockStrutsTestCase; public class SearchXtantActionTest extends MockStrutsTestCase { public SearchXtantActionTest(String testName) { super(testName); } public void testLogonSuccess() { System.out.println("test 123"); } public static void main(String[] args) { junit.textui.TestRunner.run(SearchXtantActionTest.class); } } --------- end code --------- --------- Begin error --------- warning(junit.framework.TestSuite$1)junit.framework.AssertionFailedError : Exception in constructor: testLogonSuccess (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. at servletunit.struts.MockStrutsTestCase.init(MockStrutsTestCase.java:91) at servletunit.struts.MockStrutsTestCase.setConfigFile(MockStrutsTestCase.j ava:337) at be.milieuinfo.cbb.ui.SearchXtantActionTest.<init>(SearchXtantActionTest. java:9) at java.lang.reflect.Constructor.newInstance(Native Method) at be.milieuinfo.cbb.ui.SearchXtantActionTest.main(SearchXtantActionTest.ja va:18) ) at be.milieuinfo.cbb.ui.SearchXtantActionTest.main(SearchXtantActionTest.ja va:18) --------- End error --------- -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>