@Test public void getVmImagesReturnsEmptyWhenThereAreNotAnyImages() { Mockito.when(mockedCloudMiddleware.getVmImages()).thenReturn(new ArrayList<ImageUploaded>()); assertTrue(imageManager.getVmImages().isEmpty()); }
public List<ImageUploaded> getVmImages() { return cloudMiddleware.getVmImages(); }
ImageManager { public List<ImageUploaded> getVmImages() { return cloudMiddleware.getVmImages(); } }
ImageManager { public List<ImageUploaded> getVmImages() { return cloudMiddleware.getVmImages(); } ImageManager(CloudMiddleware cloudMiddleware); }
ImageManager { public List<ImageUploaded> getVmImages() { return cloudMiddleware.getVmImages(); } ImageManager(CloudMiddleware cloudMiddleware); List<ImageUploaded> getVmImages(); String createVmImage(ImageToUpload imageToUpload); ImageUploaded getVmImage(String imageId); void deleteVmImage(String id); List<String> getVmImagesIds(); }
ImageManager { public List<ImageUploaded> getVmImages() { return cloudMiddleware.getVmImages(); } ImageManager(CloudMiddleware cloudMiddleware); List<ImageUploaded> getVmImages(); String createVmImage(ImageToUpload imageToUpload); ImageUploaded getVmImage(String imageId); void deleteVmImage(String id); List<String> getVmImagesIds();  }