Package org.jmock.api

Class ExpectationError

  • All Implemented Interfaces:
    Serializable, org.hamcrest.SelfDescribing

    public class ExpectationError
    extends Error
    implements org.hamcrest.SelfDescribing
    An error thrown when an expectation is violated during a test.
    Author:
    npryce
    See Also:
    Serialized Form
    • Field Detail

      • expectations

        public final org.hamcrest.SelfDescribing expectations
    • Constructor Detail

      • ExpectationError

        public ExpectationError​(String message,
                                org.hamcrest.SelfDescribing expectations,
                                Invocation invocation)
    • Method Detail

      • notAllSatisfied

        public static ExpectationError notAllSatisfied​(org.hamcrest.SelfDescribing expectations)
      • describeTo

        public void describeTo​(org.hamcrest.Description description)
        Specified by:
        describeTo in interface org.hamcrest.SelfDescribing