@Test public void shouldFilterDirectory() throws Exception { when(file.isFile()).thenReturn(false); boolean result = filter.accept(file); assertFalse(result); }
@Override public boolean accept(File pathname) { if (!pathname.canRead()) { LOG.warn("Unable to read potential change file " + pathname.getAbsolutePath()); return false; } return pathname.isFile() && pathname.getName().toUpperCase().endsWith(".XML"); }
ChangeFileFilter implements FileFilter { @Override public boolean accept(File pathname) { if (!pathname.canRead()) { LOG.warn("Unable to read potential change file " + pathname.getAbsolutePath()); return false; } return pathname.isFile() && pathname.getName().toUpperCase().endsWith(".XML"); } }
ChangeFileFilter implements FileFilter { @Override public boolean accept(File pathname) { if (!pathname.canRead()) { LOG.warn("Unable to read potential change file " + pathname.getAbsolutePath()); return false; } return pathname.isFile() && pathname.getName().toUpperCase().endsWith(".XML"); }  }
ChangeFileFilter implements FileFilter { @Override public boolean accept(File pathname) { if (!pathname.canRead()) { LOG.warn("Unable to read potential change file " + pathname.getAbsolutePath()); return false; } return pathname.isFile() && pathname.getName().toUpperCase().endsWith(".XML"); }  @Override boolean accept(File pathname); }
ChangeFileFilter implements FileFilter { @Override public boolean accept(File pathname) { if (!pathname.canRead()) { LOG.warn("Unable to read potential change file " + pathname.getAbsolutePath()); return false; } return pathname.isFile() && pathname.getName().toUpperCase().endsWith(".XML"); }  @Override boolean accept(File pathname);  }