@Test public void shouldConnect() throws Exception { control.connect(); }
public void connect() throws Exception { URLConnection newConnection = location.openConnection(); newConnection.connect(); connection = newConnection; bytesIn = connection.getInputStream(); lineBuf = new ByteArrayOutputStream(); }
Control { public void connect() throws Exception { URLConnection newConnection = location.openConnection(); newConnection.connect(); connection = newConnection; bytesIn = connection.getInputStream(); lineBuf = new ByteArrayOutputStream(); } }
Control { public void connect() throws Exception { URLConnection newConnection = location.openConnection(); newConnection.connect(); connection = newConnection; bytesIn = connection.getInputStream(); lineBuf = new ByteArrayOutputStream(); } Control(URL location); }
Control { public void connect() throws Exception { URLConnection newConnection = location.openConnection(); newConnection.connect(); connection = newConnection; bytesIn = connection.getInputStream(); lineBuf = new ByteArrayOutputStream(); } Control(URL location); void connect(); void disconnect(); void writeCommand(Command command); CommandEvent readEvent(); CommandEvent readEvent(int timeout, TimeUnit unit); boolean isConnected(); void notifyBarrier(String barrierName); void sendAwaitBarrier(String barrierName); }
Control { public void connect() throws Exception { URLConnection newConnection = location.openConnection(); newConnection.connect(); connection = newConnection; bytesIn = connection.getInputStream(); lineBuf = new ByteArrayOutputStream(); } Control(URL location); void connect(); void disconnect(); void writeCommand(Command command); CommandEvent readEvent(); CommandEvent readEvent(int timeout, TimeUnit unit); boolean isConnected(); void notifyBarrier(String barrierName); void sendAwaitBarrier(String barrierName);  }