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 | 10 years 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

    junit.framework.AssertionFailedError:

    strutstestcase | 10 years 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