@Override public void close(int exit) { try { TtyCommand.this.close(exit); } catch (IOException ignore) { } } }
@Override public void schedule(Runnable task, long delay, TimeUnit unit) { TtyCommand.this.schedule(task, delay, unit); }
@Override public void execute(Runnable task) { TtyCommand.this.execute(task); }
@Override public IoServiceFactory create(FactoryManager manager) { return new TestServiceFactory(manager, getExecutorService(), isShutdownOnExit()); } }
@Test public void testSyncAuthFailed() throws Exception { startServer(); authenticator = new PasswordAuthenticator() { @Override public boolean authenticate(String username, String password, ServerSession session) throws PasswordChangeRequiredException { return false; } }; assertFalse(authenticate()); }
protected TtyCommand createConnection(Consumer<TtyConnection> onConnect) { return new TtyCommand(charset, onConnect); }
public void startServer() throws Exception { startServer(null); }
@Override public IoServiceFactory create(FactoryManager manager) { return new TestServiceFactory(manager, getExecutorService(), isShutdownOnExit()); } }
protected TtyCommand createConnection(Consumer<TtyConnection> onConnect) { return new TtyCommand(charset, onConnect); }
public void startServer() throws Exception { startServer(null); }
@Override public void close() { try { TtyCommand.this.close(); } catch (IOException ignore) { } }
@Override public void schedule(Runnable task, long delay, TimeUnit unit) { TtyCommand.this.schedule(task, delay, unit); }
@Override public void execute(Runnable task) { TtyCommand.this.execute(task); }
@Override public IoServiceFactory create(FactoryManager manager) { return new TestServiceFactory(manager, getExecutorService(), isShutdownOnExit()); } }
protected TtyCommand createConnection(Consumer<TtyConnection> onConnect) { return new TtyCommand(charset, onConnect); }
public void startServer() throws Exception { startServer(null); }
@Override public void close(int exit) { try { TtyCommand.this.close(exit); } catch (IOException ignore) { } } }
@Override public void close() { try { TtyCommand.this.close(); } catch (IOException ignore) { } }
@Override public void close() throws IOException { close(0); }
@Override public void close() throws IOException { close(0); }