@Test public void testAcceptShouldReturnFalseWhenParameterIsNotFile() { given(file.isFile()).willReturn(false); boolean result = underTest.accept(file); verify(file).isFile(); assertFalse(result); }
@Override public boolean accept(final File file) { return file.isFile() && isMatchWithRegExp(file); }
MessageFileFilter implements FileFilter { @Override public boolean accept(final File file) { return file.isFile() && isMatchWithRegExp(file); } }
MessageFileFilter implements FileFilter { @Override public boolean accept(final File file) { return file.isFile() && isMatchWithRegExp(file); }  }
MessageFileFilter implements FileFilter { @Override public boolean accept(final File file) { return file.isFile() && isMatchWithRegExp(file); }  @Override boolean accept(final File file); }
MessageFileFilter implements FileFilter { @Override public boolean accept(final File file) { return file.isFile() && isMatchWithRegExp(file); }  @Override boolean accept(final File file);  }