@Test public void getVmImages() { List<ImageUploaded> mockedCloudMiddlewareResponse = new ArrayList<>(); mockedCloudMiddlewareResponse.add(new ImageUploaded("imageId", "imageName", "active")); Mockito.when(mockedCloudMiddleware.getVmImages()).thenReturn(mockedCloudMiddlewareResponse); assertEquals(mockedCloudMiddlewareResponse, imageManager.getVmImages()); }
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();  }