com.mockobjects

Class ExpectationCounter

Implemented Interfaces:
Expectation, Verifiable

public class ExpectationCounter
extends AbstractExpectation

Constructor Summary

ExpectationCounter(String name)

Method Summary

void
clearActual()
void
inc()
void
setExpectNothing()
void
setExpected(int expectedCalls)
void
verify()
Throw an AssertionFailedException if any expectations have not been met.

Methods inherited from class com.mockobjects.AbstractExpectation

clearActual, hasExpectations, setFailOnVerify, verify

Constructor Details

ExpectationCounter

public ExpectationCounter(String name)

Method Details

clearActual

public void clearActual()
Overrides:
clearActual in interface AbstractExpectation

inc

public void inc()

setExpectNothing

public void setExpectNothing()
Specified by:
setExpectNothing in interface Expectation

setExpected

public void setExpected(int expectedCalls)

verify

public void verify()
Throw an AssertionFailedException if any expectations have not been met.
Specified by:
verify in interface Verifiable
Overrides:
verify in interface AbstractExpectation

Copyright © 2002 Mock Objects. All Rights Reserved.