File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problem With StrutsTestCase" Watch "Problem With StrutsTestCase" New topic

Problem With StrutsTestCase

ziad logica

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(
at com.strutstestcase.LoginActionTest.testLoginWithCo nsultationParcInMenu(ConsultationParcInLoginAction
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De
at java.lang.reflect.Method.invoke(
at junit.framework.TestCase.runTest( )
at junit.framework.TestCase.runBare( )
at junit.framework.TestResult$1.protect(TestResult.ja va:110)
at junit.framework.TestResult.runProtected(TestResult .java:128)
at )
at junit.framework.TestSuite.runTest( 32)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestR
at org.eclipse.jdt.internal.junit.runner.TestExecutio
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu
at org.eclipse.jdt.internal.junit.runner.RemoteTestRu nner.main(

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