T
- the type of ConditionBean implementationpublic class HasCondition<T extends org.dbflute.cbean.ConditionBean> extends BaseMatcher<T>
ConditionValue
from T
instance for further assertion.
Example:
MemberCB cb = ...;
cb.query().setMemberName_Equal("John Doe");
assertThat(cb, hasCondition("memberName", equal("John Doe")));
コンストラクタと説明 |
---|
HasCondition(String column,
Matcher<?> matcher) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
describeMismatch(Object item,
Description description) |
void |
describeTo(Description description) |
static <T extends org.dbflute.cbean.ConditionBean> |
hasCondition(String column,
Matcher<?> matcher) |
boolean |
matches(Object item) |
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString
public boolean matches(Object item)
public void describeTo(Description description)
public void describeMismatch(Object item, Description description)
describeMismatch
インタフェース内 Matcher<T extends org.dbflute.cbean.ConditionBean>
describeMismatch
クラス内 BaseMatcher<T extends org.dbflute.cbean.ConditionBean>
public static <T extends org.dbflute.cbean.ConditionBean> HasCondition<T> hasCondition(String column, Matcher<?> matcher)
Copyright © 2015 The DBFlute Project. All rights reserved.