testhelpers/src/main/java/com/kdgregory/aws/utils/testhelpers/mocks/AbstractMock.java
/**
     *  Asserts the number of times that a particular method was invoked. The
     *  assertion method will include the provided message suffix (if not null),
     *  which may be used to provide additional information about the assertion.
     */
Asserts the number of times that a particular method was invoked. The
assertion method will include the provided message suffix (if not null),
which may be used to provide additional information about the assertion.
Asserts the number of times that a particular method was invoked . The assertion method will include the provided message suffix ( if not null ) which may be used to provide additional information about the assertion .
public void assertInvocationCount(String messageSuffix, String methodName, int expected)
    {
        String message = "invocation count: " + methodName;
        if (messageSuffix != null)
            message += ", " + messageSuffix;
        assertEquals(message, expected, getInvocationCount(methodName));
    }
public void assertInvocationCount ( String messageSuffix , String methodName , int expected ) { String message = "invocation count: " + methodName ; if ( messageSuffix != null ) message += ", " + messageSuffix ; assertEquals ( message , expected , getInvocationCount ( methodName ) ) ; }
Asserts the number of times that a particular method was invoked.
Asserts the number of times that a particular method was invoked .