Hi,
I have the following mock test code. When I run it I get the below error message.
Any ideas?
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at
com.intellij.rt.execution.junit.TestRunnerUtil.getTestImpl(TestRunnerUtil.java:79)
at
com.intellij.rt.execution.junit.ui.SwingTestRunner.getTest(SwingTestRunner.java:19)
at junit.swingui.TestRunner.runSuite(TestRunner.java:591)
at junit.swingui.TestRunner.start(TestRunner.java:708)
at
com.intellij.rt.execution.junit.ui.SwingTestRunner.main(SwingTestRunner.java:11)
/**
* Created by IntelliJ IDEA.
* User: zonome
* Date: 14-Jan-2004
* Time: 11:24:51
* To change this template use Options | File Templates.
*/
public class TestNewUnwindAction extends MockStrutsTestCase{
public TestNewUnwindAction( String testName){super(testName); }
public void setUp() {
try{
super.setUp();
} catch(Exception e) {}
}
public void tearDown(){
try{
super.tearDown();
} catch(Exception e) {}
}
public void testSuccessfulNewUnwindAction() {
setRequestPathInfo("/newunwind");
addRequestParameter("tradeId", "1000");
actionPerform();
verifyForward("success");
verifyActionErrors(new String[] {"error.notradeid"} );
assertEquals("currencies", (String) getSession().getAttribute("currencies"));
}
}
--
This e-mail may contain confidential and/or privileged information. If you are not the
intended recipient (or have received this e-mail in error) please notify the sender
immediately and destroy this e-mail. Any unauthorized copying, disclosure or
distribution of the material in this e-mail is strictly forbidden.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]