@Test public void testGetLogContentWhenFileDoesNotExistShouldReturnFileNotFoundMessage() { Collection<File> files = getFileCollection(); String fileName = "non-existent-file"; given(fileUtils.getFilesWithExtension(LOG_PATH, LOG_EXTENSION)).willReturn(files); String result = underTest.getLogContent(fileName); assertEquals(FILE_NOT_FOUND_MESSAGE, result); }
public String getLogContent(final String fileName) { Collection<File> files = getLogFiles(LOG_PATH); File file = findFile(fileName, files); return getContent(file); }
LogFileProvider { public String getLogContent(final String fileName) { Collection<File> files = getLogFiles(LOG_PATH); File file = findFile(fileName, files); return getContent(file); } }
LogFileProvider { public String getLogContent(final String fileName) { Collection<File> files = getLogFiles(LOG_PATH); File file = findFile(fileName, files); return getContent(file); }  }
LogFileProvider { public String getLogContent(final String fileName) { Collection<File> files = getLogFiles(LOG_PATH); File file = findFile(fileName, files); return getContent(file); }  Collection<String> getLogFileNames(); String getLogContent(final String fileName); }
LogFileProvider { public String getLogContent(final String fileName) { Collection<File> files = getLogFiles(LOG_PATH); File file = findFile(fileName, files); return getContent(file); }  Collection<String> getLogFileNames(); String getLogContent(final String fileName);  }