junit.framework.AssertionFailedError: was expecting some error messages, but received none.

strutstestcase | nobody | 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

    Expected error messages

    strutstestcase | 1 decade ago | nobody
    junit.framework.AssertionFailedError: was expecting some error messages, but received none.
  2. 0

    .actionPerform() and ServletException

    strutstestcase | 1 decade ago | *anonymous
    junit.framework.AssertionFailedError: was expecting some error messages, but received none.

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      was expecting some error messages, but received none.

      at servletunit.struts.Common.verifyActionMessages()
    2. servletunit.struts
      MockStrutsTestCase.verifyActionErrors
      1. servletunit.struts.Common.verifyActionMessages(Common.java:84)
      2. servletunit.struts.MockStrutsTestCase.verifyActionErrors(MockStrutsTestCase.java:661)
      2 frames
    3. com.db.gcp
      TestNewUnwindAction.testSuccessfulNewUnwindAction
      1. com.db.gcp.lem.cds.struts.TestNewUnwindAction.testSuccessfulNewUnwindAction(TestNewUnwindAction.java:43)
      1 frame
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    5. com.db.gcp
      TestNewUnwindAction.main
      1. com.db.gcp.lem.cds.struts.TestNewUnwindAction.main(TestNewUnwindAction.java:21)
      1 frame