org.hamcrest.Matchers#any ( )源码实例Demo

下面列出了org.hamcrest.Matchers#any ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

@Override
public Matcher<View> getConstraints() {
  return Matchers.any(View.class);
}
 
@Override
public Matcher<View> getConstraints() {
    return Matchers.any(View.class);
}
 
源代码3 项目: beam   文件: LogRecordMatcher.java
/** Match {@link LogRecord} instances containing the specified message substring. */
public static LogRecordMatcher hasLog(String substring) {
  return new LogRecordMatcher(Matchers.any(Level.class), substring);
}
 
@Override
public Matcher<View> getConstraints() {
    return Matchers.any(View.class);
}