@Test(expected = NoSuchFileException.class) public void testNotfound() throws Exception { final DefaultWatchEditor editor = new DefaultWatchEditor(null, new StatelessSessionPool(new TestLoginConnectionService(), new NullSession(new Host(new TestProtocol())), PathCache.empty(), new DisabledTranscriptListener(), new DefaultVaultRegistry(new DisabledPasswordCallback())), new Path("/remote", EnumSet.of(Path.Type.file)), new DisabledListProgressListener()); editor.watch(new Local(System.getProperty("java.io.tmpdir") + "/notfound", UUID.randomUUID().toString()), new DisabledFileWatcherListener()); }
@Override protected void watch(final Local local, final FileWatcherListener listener) throws IOException { Uninterruptibles.awaitUninterruptibly(monitor.register(local.getParent(), new FileWatcher.DefaultFileFilter(local), listener)); }
DefaultWatchEditor extends AbstractEditor { @Override protected void watch(final Local local, final FileWatcherListener listener) throws IOException { Uninterruptibles.awaitUninterruptibly(monitor.register(local.getParent(), new FileWatcher.DefaultFileFilter(local), listener)); } }
DefaultWatchEditor extends AbstractEditor { @Override protected void watch(final Local local, final FileWatcherListener listener) throws IOException { Uninterruptibles.awaitUninterruptibly(monitor.register(local.getParent(), new FileWatcher.DefaultFileFilter(local), listener)); } DefaultWatchEditor(final Application application,
                              final SessionPool session,
                              final Path file,
                              final ProgressListener listener);  DefaultWatchEditor(final Application application,
                              final SessionPool session,
                              final Path file,
                              final ApplicationLauncher launcher,
                              final ApplicationFinder finder,
                              final ProgressListener listener); }
DefaultWatchEditor extends AbstractEditor { @Override protected void watch(final Local local, final FileWatcherListener listener) throws IOException { Uninterruptibles.awaitUninterruptibly(monitor.register(local.getParent(), new FileWatcher.DefaultFileFilter(local), listener)); } DefaultWatchEditor(final Application application,
                              final SessionPool session,
                              final Path file,
                              final ProgressListener listener);  DefaultWatchEditor(final Application application,
                              final SessionPool session,
                              final Path file,
                              final ApplicationLauncher launcher,
                              final ApplicationFinder finder,
                              final ProgressListener listener); @Override void close(); }
DefaultWatchEditor extends AbstractEditor { @Override protected void watch(final Local local, final FileWatcherListener listener) throws IOException { Uninterruptibles.awaitUninterruptibly(monitor.register(local.getParent(), new FileWatcher.DefaultFileFilter(local), listener)); } DefaultWatchEditor(final Application application,
                              final SessionPool session,
                              final Path file,
                              final ProgressListener listener);  DefaultWatchEditor(final Application application,
                              final SessionPool session,
                              final Path file,
                              final ApplicationLauncher launcher,
                              final ApplicationFinder finder,
                              final ProgressListener listener); @Override void close();  }