@Test public void testFind() throws Exception { final SDSNodeIdProvider nodeid = new SDSNodeIdProvider(session).withCache(cache); assertTrue(new SDSFindFeature(nodeid).find(new DefaultHomeFinderService(session).find())); assertFalse(new SDSFindFeature(nodeid).find( new Path(new DefaultHomeFinderService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.directory)) )); assertFalse(new SDSFindFeature(nodeid).find( new Path(new DefaultHomeFinderService(session).find(), UUID.randomUUID().toString(), EnumSet.of(Path.Type.file)) )); }
@Override public boolean find(final Path file) throws BackgroundException { try { nodeid.getFileid(file, new DisabledListProgressListener()); return true; } catch(NotfoundException e) { return false; } }
SDSFindFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { try { nodeid.getFileid(file, new DisabledListProgressListener()); return true; } catch(NotfoundException e) { return false; } } }
SDSFindFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { try { nodeid.getFileid(file, new DisabledListProgressListener()); return true; } catch(NotfoundException e) { return false; } } SDSFindFeature(final SDSNodeIdProvider nodeid); }
SDSFindFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { try { nodeid.getFileid(file, new DisabledListProgressListener()); return true; } catch(NotfoundException e) { return false; } } SDSFindFeature(final SDSNodeIdProvider nodeid); @Override boolean find(final Path file); @Override Find withCache(final Cache<Path> cache); }
SDSFindFeature implements Find { @Override public boolean find(final Path file) throws BackgroundException { try { nodeid.getFileid(file, new DisabledListProgressListener()); return true; } catch(NotfoundException e) { return false; } } SDSFindFeature(final SDSNodeIdProvider nodeid); @Override boolean find(final Path file); @Override Find withCache(final Cache<Path> cache);  }