@Test public void isPriorityDirectory_ShouldReturnFalse_IfDirectoryIsInvalid() throws Exception { Path dir = inputDir.resolve("-1"); assertThat(subject.isPriorityDirectory(dir)).isFalse(); }
boolean isPriorityDirectory(Path path) { try { return getNumberFromDir(path) >= 0; } catch (NumberFormatException ex) { log.debug(ex.getMessage()); return false; } }
MediaScanServiceImpl implements MediaScanService { boolean isPriorityDirectory(Path path) { try { return getNumberFromDir(path) >= 0; } catch (NumberFormatException ex) { log.debug(ex.getMessage()); return false; } } }
MediaScanServiceImpl implements MediaScanService { boolean isPriorityDirectory(Path path) { try { return getNumberFromDir(path) >= 0; } catch (NumberFormatException ex) { log.debug(ex.getMessage()); return false; } } @Inject  MediaScanServiceImpl(MediaScanConfig scanConfig,
                         Provider<FileScanner> scannerProvider); }
MediaScanServiceImpl implements MediaScanService { boolean isPriorityDirectory(Path path) { try { return getNumberFromDir(path) >= 0; } catch (NumberFormatException ex) { log.debug(ex.getMessage()); return false; } } @Inject  MediaScanServiceImpl(MediaScanConfig scanConfig,
                         Provider<FileScanner> scannerProvider); @Override Map<Path, List<Media>> retrieveFiles(); @Override List<Media> retrieveFilesAsList(); }
MediaScanServiceImpl implements MediaScanService { boolean isPriorityDirectory(Path path) { try { return getNumberFromDir(path) >= 0; } catch (NumberFormatException ex) { log.debug(ex.getMessage()); return false; } } @Inject  MediaScanServiceImpl(MediaScanConfig scanConfig,
                         Provider<FileScanner> scannerProvider); @Override Map<Path, List<Media>> retrieveFiles(); @Override List<Media> retrieveFilesAsList();  }