Helper to create a temporary file with given input data for use in test cases. @param tmpFilenamePrefix file-name prefix @param tmpFilenameSuffix file-name suffix @param inputData input for test cases, each string in inputData[] is written on one line @return File handle to
(String tmpFilenamePrefix, String tmpFilenameSuffix, String[] inputData)
| 327 | * @throws IOException |
| 328 | */ |
| 329 | static public File createInputFile(String tmpFilenamePrefix, |
| 330 | String tmpFilenameSuffix, |
| 331 | String[] inputData) |
| 332 | throws IOException { |
| 333 | File f = File.createTempFile(tmpFilenamePrefix, tmpFilenameSuffix); |
| 334 | f.deleteOnExit(); |
| 335 | writeToFile(f, inputData); |
| 336 | return f; |
| 337 | } |
| 338 | |
| 339 | static public File createLocalInputFile(String filename, String[] inputData) |
| 340 | throws IOException { |
no test coverage detected