org.test4j.hamcrest.iassert.common.impl
类 Assert<T,E extends IAssert>
java.lang.Object
ext.test4j.hamcrest.BaseMatcher<T>
org.test4j.hamcrest.iassert.common.impl.Assert<T,E>
- 所有已实现的接口:
- Matcher<T>, SelfDescribing, IAssert<T,E>
- 直接已知子类:
- BaseAssert
public abstract class Assert<T,E extends IAssert>
- extends BaseMatcher<T>
- implements IAssert<T,E>
the
protected static final TheStyleAssertion the
valueClaz
protected Class valueClaz
value
protected Object value
type
protected Assert.AssertType type
assertClaz
protected Class<? extends IAssert> assertClaz
link
protected LinkMatcher<?> link
Assert
public Assert()
Assert
public Assert(Class<? extends IAssert> clazE)
Assert
public Assert(T value,
Class<? extends IAssert> clazE)
Assert
public Assert(Class<T> clazT,
Class<? extends IAssert> clazE)
describeTo
public void describeTo(Description description)
- 指定者:
- 接口
SelfDescribing 中的 describeTo
assertThat
public E assertThat(Matcher matcher)
assertThat
public E assertThat(String message,
Matcher matcher)
toString
public String toString()
- 覆盖:
- 类
BaseMatcher<T> 中的 toString
matches
public boolean matches(Object item)
- 指定者:
- 接口
Matcher<T> 中的 matches
equals
public boolean equals(Object obj)
- 覆盖:
- 类
Object 中的 equals
hashCode
public int hashCode()
- 覆盖:
- 类
Object 中的 hashCode
wanted
public T wanted()
- 从接口
IAssert 复制的描述
- 用于jmock expected参数断言的结尾
结束断言返回一个符合参数类型的值以满足编译
- 指定者:
- 接口
IAssert<T,E extends IAssert> 中的 wanted
- 返回:
- 返回参数类型的默认值
wanted
public <F> F wanted(Class<F> claz)
- 从接口
IAssert 复制的描述
- 用于jmock expected参数断言的结尾
结束断言返回一个符合参数类型的值以满足编译
- 指定者:
- 接口
IAssert<T,E extends IAssert> 中的 wanted
- 返回:
getValueClaz
public Class getValueClaz()
Copyright © 2013. All rights reserved.