@Test public void validateFileWithExtension() { String pattern = new File(folder.getRoot(), "{count}.log").getAbsolutePath(); DynamicPath path = new DynamicPath(pattern); assertThat(path.isValid(new File(folder.getRoot(), "42.log"))).isTrue(); }
public boolean isValid(final File file) { return isValid(file.getAbsolutePath(), 0, 0); }
DynamicPath { public boolean isValid(final File file) { return isValid(file.getAbsolutePath(), 0, 0); } }
DynamicPath { public boolean isValid(final File file) { return isValid(file.getAbsolutePath(), 0, 0); } DynamicPath(final String path); }
DynamicPath { public boolean isValid(final File file) { return isValid(file.getAbsolutePath(), 0, 0); } DynamicPath(final String path); String resolve(); List<FileTuple> getAllFiles(final String backupSuffix); boolean isValid(final File file); }
DynamicPath { public boolean isValid(final File file) { return isValid(file.getAbsolutePath(), 0, 0); } DynamicPath(final String path); String resolve(); List<FileTuple> getAllFiles(final String backupSuffix); boolean isValid(final File file);  }