com.mockobjects

Class AbstractExpectation

Implemented Interfaces:
Expectation, Verifiable
Known Direct Subclasses:
AbstractExpectationCollection, ExpectationCounter, ExpectationDoubleValue, ExpectationSegment, ExpectationValue

public abstract class AbstractExpectation
extends java.lang.Object
implements Verifiable, Expectation

Constructor Summary

AbstractExpectation(String name)

Method Summary

abstract void
clearActual()
boolean
hasExpectations()
void
setFailOnVerify()
abstract void
verify()
Throw an AssertionFailedException if any expectations have not been met.

Constructor Details

AbstractExpectation

public AbstractExpectation(String name)

Method Details

clearActual

public abstract void clearActual()

hasExpectations

public boolean hasExpectations()
Specified by:
hasExpectations in interface Expectation

setFailOnVerify

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

verify

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

Copyright © 2002 Mock Objects. All Rights Reserved.