@Test public void shouldImageFindFile_FullPath() { File f1 = targetFactory.findImageFile(FILE_PATH); assertTrue(f1.exists()); File f2 = targetFactory.findImageFile(FILE_PATH_BACKSLASHED); assertTrue(f2.exists()); }
@VisibleForTesting protected File findImageFile(String imageFile) { File foundImageFile = findImageFile(folderToScan, imageFile); return foundImageFile == null ? new File(imageFile) : foundImageFile; }
TargetFactory { @VisibleForTesting protected File findImageFile(String imageFile) { File foundImageFile = findImageFile(folderToScan, imageFile); return foundImageFile == null ? new File(imageFile) : foundImageFile; } }
TargetFactory { @VisibleForTesting protected File findImageFile(String imageFile) { File foundImageFile = findImageFile(folderToScan, imageFile); return foundImageFile == null ? new File(imageFile) : foundImageFile; }  }
TargetFactory { @VisibleForTesting protected File findImageFile(String imageFile) { File foundImageFile = findImageFile(folderToScan, imageFile); return foundImageFile == null ? new File(imageFile) : foundImageFile; }  void setImagePrefix(String imagePathPrefix); ImageTarget createImageTarget(String imageFile); }
TargetFactory { @VisibleForTesting protected File findImageFile(String imageFile) { File foundImageFile = findImageFile(folderToScan, imageFile); return foundImageFile == null ? new File(imageFile) : foundImageFile; }  void setImagePrefix(String imagePathPrefix); ImageTarget createImageTarget(String imageFile);  }