@Test public void testIsMatchWithRegExpShouldReturnTrueWhenNameDoesMatch() { String fileName = "20130701132107.0025resp.txt"; given(file.getName()).willReturn(fileName); boolean result = underTest.isMatchWithRegExp(file); assertTrue(result); }
boolean isMatchWithRegExp(final File file) { return file.getName().matches(FILE_NAME_EXP); }
MessageFileFilter implements FileFilter { boolean isMatchWithRegExp(final File file) { return file.getName().matches(FILE_NAME_EXP); } }
MessageFileFilter implements FileFilter { boolean isMatchWithRegExp(final File file) { return file.getName().matches(FILE_NAME_EXP); }  }
MessageFileFilter implements FileFilter { boolean isMatchWithRegExp(final File file) { return file.getName().matches(FILE_NAME_EXP); }  @Override boolean accept(final File file); }
MessageFileFilter implements FileFilter { boolean isMatchWithRegExp(final File file) { return file.getName().matches(FILE_NAME_EXP); }  @Override boolean accept(final File file);  }