junit.framework.AssertionFailedError: was expecting '/test/Service' but received '/test/pages/layout/mtonecolumnlayout\_checkout.jsp'

strutstestcase | nobody | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    TestCase for chained up Actions

    strutstestcase | 1 decade ago | nobody
    junit.framework.AssertionFailedError: was expecting '/test/Service' but received '/test/pages/layout/mtonecolumnlayout\_checkout.jsp'

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      was expecting '/test/Service' but received '/test/pages/layout/mtonecolumnlayout\_checkout.jsp'

      at servletunit.struts.CactusStrutsTestCase.verifyForwardPath()
    2. servletunit.struts
      CactusStrutsTestCase.verifyForwardPath
      1. servletunit.struts.CactusStrutsTestCase.verifyForwardPath(CactusStrutsTestCase.java:637)
      1 frame
    3. test
      TestLoginAction.testSuccessfulLogin
      1. test.TestLoginAction.testSuccessfulLogin(TestLoginAction.java:31)
      1 frame
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      3 frames
    5. org.apache.cactus
      AbstractWebTestCaller.doTest
      1. org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
      2. org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
      2 frames