@Test public final void testConnection() { final UnixConnector connector = new UnixConnector(); connector.init(createConfiguration()); connector.test(); connector.dispose(); }
@Test(expected = ConnectorException.class) public final void testWrongConnection() { final UnixConnector connector = new UnixConnector(); UnixConfiguration unixConfiguration = createConfiguration(); unixConfiguration.setHostname("wrongaddresswrong"); connector.init(unixConfiguration); connector.test(); connector.dispose(); }