Ejemplo n.º 1
0
 @Test
 public final void testConnection() {
   final UnixConnector connector = new UnixConnector();
   connector.init(createConfiguration());
   connector.test();
   connector.dispose();
 }
Ejemplo n.º 2
0
 @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();
 }