@Test public void connectsToRiemann() throws Exception { riemann.connect(); verify(client).connect(); }
public void connect() throws IOException { if (!client.isConnected()) { client.connect(); } }
Riemann implements Closeable { public void connect() throws IOException { if (!client.isConnected()) { client.connect(); } } }
Riemann implements Closeable { public void connect() throws IOException { if (!client.isConnected()) { client.connect(); } } Riemann(String host, Integer port);  Riemann(String host, Integer port, int batchSize);  Riemann(IRiemannClient client); }
Riemann implements Closeable { public void connect() throws IOException { if (!client.isConnected()) { client.connect(); } } Riemann(String host, Integer port);  Riemann(String host, Integer port, int batchSize);  Riemann(IRiemannClient client); void connect(); @Override void close(); }
Riemann implements Closeable { public void connect() throws IOException { if (!client.isConnected()) { client.connect(); } } Riemann(String host, Integer port);  Riemann(String host, Integer port, int batchSize);  Riemann(IRiemannClient client); void connect(); @Override void close();  }