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>


嵌套类摘要
protected static class Assert.AssertType
           
 
字段摘要
protected  Class<? extends IAssert> assertClaz
           
protected  LinkMatcher<?> link
           
protected static TheStyleAssertion the
           
protected  Assert.AssertType type
           
protected  Object value
           
protected  Class valueClaz
           
 
构造方法摘要
Assert()
           
Assert(Class<? extends IAssert> clazE)
           
Assert(Class<T> clazT, Class<? extends IAssert> clazE)
           
Assert(T value, Class<? extends IAssert> clazE)
           
 
方法摘要
 E assertThat(Matcher matcher)
           
 E assertThat(String message, Matcher matcher)
           
 void describeTo(Description description)
           
 boolean equals(Object obj)
           
 Class getValueClaz()
           
 int hashCode()
           
 boolean matches(Object item)
           
 String toString()
           
 T wanted()
          用于jmock expected参数断言的结尾
结束断言返回一个符合参数类型的值以满足编译
<F> F
wanted(Class<F> claz)
          用于jmock expected参数断言的结尾
结束断言返回一个符合参数类型的值以满足编译
 
从类 ext.test4j.hamcrest.BaseMatcher 继承的方法
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch
 
从类 java.lang.Object 继承的方法
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
从接口 ext.test4j.hamcrest.Matcher 继承的方法
describeMismatch
 

字段详细信息

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.