@Test public void validateFileWithWrongPrefix() { String pattern = new File(folder.getRoot(), "log_{count}.txt").getAbsolutePath(); DynamicPath path = new DynamicPath(pattern); assertThat(path.isValid(new File(folder.getRoot(), "test_42.txt"))).isFalse(); }
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);  }