@Test public void getAllRetinasTest() throws ApiException { int count = 7; when(api.getRetinas(isNull(String.class))).thenReturn(createRetinas(count)); List<Retina> retinas = retinaInfoApiImpl.getAllRetinas(); assertEquals(count, retinas.size()); verify(api, times(1)).getRetinas(isNull(String.class)); }
@Override public List<Retina> getAllRetinas() throws ApiException { return api.getRetinas(null); }
RetinaInfoApiImpl implements Retinas { @Override public List<Retina> getAllRetinas() throws ApiException { return api.getRetinas(null); } }
RetinaInfoApiImpl implements Retinas { @Override public List<Retina> getAllRetinas() throws ApiException { return api.getRetinas(null); } RetinaInfoApiImpl(final String ip, String apiKey);   RetinaInfoApiImpl(final String ip, final Short port, String apiKey);   RetinaInfoApiImpl(RetinasApi api); }
RetinaInfoApiImpl implements Retinas { @Override public List<Retina> getAllRetinas() throws ApiException { return api.getRetinas(null); } RetinaInfoApiImpl(final String ip, String apiKey);   RetinaInfoApiImpl(final String ip, final Short port, String apiKey);   RetinaInfoApiImpl(RetinasApi api); @Override List<Retina> getAllRetinas(); @Override Retina retinaByName(String name); }
RetinaInfoApiImpl implements Retinas { @Override public List<Retina> getAllRetinas() throws ApiException { return api.getRetinas(null); } RetinaInfoApiImpl(final String ip, String apiKey);   RetinaInfoApiImpl(final String ip, final Short port, String apiKey);   RetinaInfoApiImpl(RetinasApi api); @Override List<Retina> getAllRetinas(); @Override Retina retinaByName(String name);  }