junit.framework.AssertionFailedError: Was expecting '/CustomerSearch' but it appears the Action has tried to return an ActionForward that is not mapped correctly.

strutstestcase | joglekar_pvn | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    junit.framework.AssertionFailedError:

    strutstestcase | 1 decade ago | joglekar_pvn
    junit.framework.AssertionFailedError: Was expecting '/CustomerSearch' but it appears the Action has tried to return an ActionForward that is not mapped correctly.

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      Was expecting '/CustomerSearch' but it appears the Action has tried to return an ActionForward that is not mapped correctly.

      at servletunit.struts.MockStrutsTestCase.verifyForwardPath()
    2. servletunit.struts
      MockStrutsTestCase.verifyForwardPath
      1. servletunit.struts.MockStrutsTestCase.verifyForwardPath(MockStrutsTestCase.java:707)
      1 frame
    3. com.dna.O2
      TestCustomerSearchAction.testFailedCustomerSearch
      1. com.dna.O2.test.TestCustomerSearchAction.testFailedCustomerSearch(TestCustomerSearchAction.java:63)
      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. com.dna.O2
      TestCustomerSearchAction.main
      1. com.dna.O2.test.TestCustomerSearchAction.main(TestCustomerSearchAction.java:73)
      1 frame