@Test public void shouldReturnEmptyList() throws ConnectException { assertEquals(Collections.EMPTY_LIST, new Connect(mRequestBuilder, mParser).getData()); }
public List<Data> getData() throws ConnectException { final InputStream inputStream; try { inputStream = mRequestBuilder.create().connect().getInputStream(); return mParser.getModels(inputStream); } catch (IOException e) { throw new ConnectException(new DeliveryException(e)); } }
Connect { public List<Data> getData() throws ConnectException { final InputStream inputStream; try { inputStream = mRequestBuilder.create().connect().getInputStream(); return mParser.getModels(inputStream); } catch (IOException e) { throw new ConnectException(new DeliveryException(e)); } } }
Connect { public List<Data> getData() throws ConnectException { final InputStream inputStream; try { inputStream = mRequestBuilder.create().connect().getInputStream(); return mParser.getModels(inputStream); } catch (IOException e) { throw new ConnectException(new DeliveryException(e)); } } Connect(String url);   Connect(RequestBuilder requestBuilder, Parser parser); }
Connect { public List<Data> getData() throws ConnectException { final InputStream inputStream; try { inputStream = mRequestBuilder.create().connect().getInputStream(); return mParser.getModels(inputStream); } catch (IOException e) { throw new ConnectException(new DeliveryException(e)); } } Connect(String url);   Connect(RequestBuilder requestBuilder, Parser parser); List<Data> getData(); }
Connect { public List<Data> getData() throws ConnectException { final InputStream inputStream; try { inputStream = mRequestBuilder.create().connect().getInputStream(); return mParser.getModels(inputStream); } catch (IOException e) { throw new ConnectException(new DeliveryException(e)); } } Connect(String url);   Connect(RequestBuilder requestBuilder, Parser parser); List<Data> getData();  }