This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Problem With StrutsTestCase
It's not a secret anymore!