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