aspose file tools*
The moose likes Struts and the fly likes Problem With StrutsTestCase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem With StrutsTestCase" Watch "Problem With StrutsTestCase" New topic
Author

Problem With StrutsTestCase

ziad logica
Greenhorn

Joined: May 26, 2011
Posts: 2
Hi everyone,

I'm working on a Struts application-Spring and I developed the tests StrutsTestCase at the beginning everything works fine but at some point It display the error, it can not access JSP pages:

junit.framework.AssertionFailedError: was expecting '/index.jsp' but received '/erreur/fatalError.jsp'
at servletunit.struts.Common.verifyForwardPath(Common .java:339)
at servletunit.struts.MockStrutsTestCase.verifyForwar d(MockStrutsTestCase.java:675)
at com.strutstestcase.LoginActionTest.testLoginWithCo nsultationParcInMenu(ConsultationParcInLoginAction Test.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:168 )
at junit.framework.TestCase.runBare(TestCase.java:134 )
at junit.framework.TestResult$1.protect(TestResult.ja va:110)
at junit.framework.TestResult.runProtected(TestResult .java:128)
at junit.framework.TestResult.run(TestResult.java:113 )
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:2 32)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run( JUnit38ClassRunner.java:79)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestR eference.run(JUnit4TestReference.java:46)
at org.eclipse.jdt.internal.junit.runner.TestExecutio n.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(RemoteTestRunner.java:197)


Please has anyone any idea about this error,it blocked me for several days ?
thanksin advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem With StrutsTestCase