@Test public void shouldFindFile_MissingFoldersFromFullPath() { File f1 = targetFactory.findImageFile("rmi/TargetFactory.java"); assertTrue(f1.exists()); File f2 = targetFactory.findImageFile("rmi\\TargetFactory.java"); 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);  }