expectationcollection.java
来自「不管是测试驱动开发或者是其它的开发模式」· Java 代码 · 共 41 行
JAVA
41 行
/* Copyright (c) 2000-2004 jMock.org
*/
package org.jmock.expectation;
import java.util.Enumeration;
import java.util.Iterator;
/**
* An <EM>ExpectationCollection</EM> is an expectation that supports multiple values, such as lists
* and sets.
* <p/>
* The addition methods distinguish between adding a single value and unpacking the contents of
* a collection. We have to make this distinction so that it is possible to add an array, enumeration,
* or iterator as a single expected object, rather than adding its contents.
*/
public interface ExpectationCollection extends Expectation
{
void addActual( Object actual );
void addActual( long actual );
void addActualMany( Object[] actuals );
void addActualMany( Enumeration actuals );
void addActualMany( Iterator actuals );
void addExpected( Object expected );
void addExpected( long expected );
void addExpectedMany( Object[] expectedItems );
void addExpectedMany( Enumeration expectedItems );
void addExpectedMany( Iterator expectedItems );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?