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

strutstestcase | *anonymous | 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. 1

    .actionPerform() and ServletException

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

    Expected error messages

    strutstestcase | 1 decade ago | nobody
    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:80)
      2. servletunit.struts.MockStrutsTestCase.verifyActionErrors(MockStrutsTestCase.java:543)
      2 frames
    3. bulletinBoard
      TestAddTopicAction.testSuccessfulAddTopic
      1. bulletinBoard.TestAddTopicAction.testSuccessfulAddTopic(TestAddTopicAction.java:149)
      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. bulletinBoard
      TestAddTopicAction.main
      1. bulletinBoard.TestAddTopicAction.main(TestAddTopicAction.java:103)
      1 frame