程序包 org.hamcrest
接口 Description
public interface Description
A description of a Matcher. A Matcher will describe itself to a description which can later be used for reporting.
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static class
Description.NullDescription
字段概要
字段 修饰符和类型 字段 说明 static Description
NONE
A description that consumes input but does nothing.
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Description
appendDescriptionOf(SelfDescribing value)
Appends the description of aSelfDescribing
value to this description.Description
appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)
Appends a list ofSelfDescribing
objects to the description.Description
appendText(String text)
Appends some plain text to the description.Description
appendValue(Object value)
Appends an arbitary value to the description.<T> Description
appendValueList(String start, String separator, String end, Iterable<T> values)
Appends a list of values to the description.<T> Description
appendValueList(String start, String separator, String end, T... values)
Appends a list of values to the description.
字段详细资料
NONE
static final Description NONE
A description that consumes input but does nothing.
方法详细资料
appendText
Description appendText(String text)
Appends some plain text to the description.
appendDescriptionOf
Description appendDescriptionOf(SelfDescribing value)
Appends the description of aSelfDescribing
value to this description.
appendValue
Description appendValue(Object value)
Appends an arbitary value to the description.
appendValueList
<T> Description appendValueList(String start, String separator, String end, T... values)
Appends a list of values to the description.
appendValueList
<T> Description appendValueList(String start, String separator, String end, Iterable<T> values)
Appends a list of values to the description.
appendList
Description appendList(String start, String separator, String end, Iterable<? extends SelfDescribing> values)
Appends a list ofSelfDescribing
objects to the description.