@Test public void testMatching(){ Assert.assertFalse(new FalseMatcher<String>().matching(null)); Assert.assertFalse(new FalseMatcher<Integer>().matching(1)); Assert.assertFalse(new FalseMatcher<String>().matching("")); Assert.assertFalse(new FalseMatcher<String>().matching("foobar")); }
@Override public boolean matching(T target) { return false; }
FalseMatcher implements Matcher<T> { @Override public boolean matching(T target) { return false; } }
FalseMatcher implements Matcher<T> { @Override public boolean matching(T target) { return false; }  }
FalseMatcher implements Matcher<T> { @Override public boolean matching(T target) { return false; }  @Override boolean matching(T target); }
FalseMatcher implements Matcher<T> { @Override public boolean matching(T target) { return false; }  @Override boolean matching(T target);  }