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

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

源代码1 项目: beam   文件: WindowMatchers.java
public static <T> Matcher<WindowedValue<? extends T>> isWindowedValue(
    Matcher<? super T> valueMatcher,
    Matcher<? super Instant> timestampMatcher,
    Matcher<? super Collection<? extends BoundedWindow>> windowsMatcher) {
  return new WindowedValueMatcher<>(
      valueMatcher, timestampMatcher, windowsMatcher, Matchers.anything());
}
 
源代码2 项目: beam   文件: WindowMatchers.java
public static <T> Matcher<WindowedValue<? extends T>> isSingleWindowedValue(
    Matcher<? super T> valueMatcher,
    Matcher<? super Instant> timestampMatcher,
    Matcher<? super BoundedWindow> windowMatcher) {
  return new WindowedValueMatcher<>(
      valueMatcher, timestampMatcher, Matchers.contains(windowMatcher), Matchers.anything());
}
 
源代码3 项目: darcy-ui   文件: VisibleTextTest.java
@Test
public void shouldMatchVisibleElements() {
    VisibleText<Text> matcher = new VisibleText<>(Matchers.anything());

    Text mockText = mock(Text.class);
    when(mockText.isDisplayed()).thenReturn(true);

    assertTrue(matcher.matches(mockText));
}
 
源代码4 项目: darcy-ui   文件: VisibleTextTest.java
@Test
public void shouldNotMatchNotVisibleElements() {
    VisibleText<Text> matcher = new VisibleText<>(Matchers.anything());

    Text mockText = mock(Text.class);
    when(mockText.isDisplayed()).thenReturn(false);

    assertFalse(matcher.matches(mockText));
}
 
源代码5 项目: Flink-CEPplus   文件: StreamRecordMatchers.java
public static <T> Matcher<StreamRecord<? extends T>> isStreamRecord(
	Matcher<? super T> valueMatcher) {
	return new StreamRecordMatcher<>(valueMatcher, Matchers.anything());
}
 
源代码6 项目: Flink-CEPplus   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher, long timestamp) {
	return new WindowedValueMatcher<>(valueMatcher, Matchers.equalTo(timestamp), Matchers.anything());
}
 
源代码7 项目: Flink-CEPplus   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher) {
	return new WindowedValueMatcher<>(valueMatcher, Matchers.anything(), Matchers.anything());
}
 
源代码8 项目: Flink-CEPplus   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher, Matcher<? super Long> timestampMatcher) {
	return new WindowedValueMatcher<>(valueMatcher, timestampMatcher, Matchers.anything());
}
 
源代码9 项目: flink   文件: StreamRecordMatchers.java
public static <T> Matcher<StreamRecord<? extends T>> isStreamRecord(
	Matcher<? super T> valueMatcher) {
	return new StreamRecordMatcher<>(valueMatcher, Matchers.anything());
}
 
源代码10 项目: flink   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher, long timestamp) {
	return new WindowedValueMatcher<>(valueMatcher, Matchers.equalTo(timestamp), Matchers.anything());
}
 
源代码11 项目: flink   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher) {
	return new WindowedValueMatcher<>(valueMatcher, Matchers.anything(), Matchers.anything());
}
 
源代码12 项目: flink   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher, Matcher<? super Long> timestampMatcher) {
	return new WindowedValueMatcher<>(valueMatcher, timestampMatcher, Matchers.anything());
}
 
源代码13 项目: beam   文件: WindowMatchers.java
public static <T> Matcher<WindowedValue<? extends T>> isWindowedValue(
    Matcher<? super T> valueMatcher, Matcher<? super Instant> timestampMatcher) {
  return new WindowedValueMatcher<>(
      valueMatcher, timestampMatcher, Matchers.anything(), Matchers.anything());
}
 
源代码14 项目: beam   文件: WindowMatchers.java
public static <T> Matcher<WindowedValue<? extends T>> isWindowedValue(
    Matcher<? super T> valueMatcher) {
  return new WindowedValueMatcher<>(
      valueMatcher, Matchers.anything(), Matchers.anything(), Matchers.anything());
}
 
源代码15 项目: espresso-cucumber   文件: SpoonScreenshotAction.java
@Override
public Matcher<View> getConstraints() {
    return Matchers.anything();
}
 
源代码16 项目: flink   文件: StreamRecordMatchers.java
public static <T> Matcher<StreamRecord<? extends T>> streamRecord(
	Matcher<? super T> valueMatcher) {
	return new StreamRecordMatcher<>(valueMatcher, Matchers.anything());
}
 
源代码17 项目: flink   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher, long timestamp) {
	return new WindowedValueMatcher<>(valueMatcher, Matchers.equalTo(timestamp), Matchers.anything());
}
 
源代码18 项目: flink   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher) {
	return new WindowedValueMatcher<>(valueMatcher, Matchers.anything(), Matchers.anything());
}
 
源代码19 项目: flink   文件: StreamRecordMatchers.java
public static <T, W extends Window> Matcher<StreamRecord<? extends WindowedValue<? extends T, ? extends W>>> isWindowedValue(
	Matcher<? super T> valueMatcher, Matcher<? super Long> timestampMatcher) {
	return new WindowedValueMatcher<>(valueMatcher, timestampMatcher, Matchers.anything());
}