equal
deleted
inserted
replaced
39 import java.lang.reflect.Method; |
39 import java.lang.reflect.Method; |
40 import java.nio.file.Files; |
40 import java.nio.file.Files; |
41 import java.util.Arrays; |
41 import java.util.Arrays; |
42 import java.util.ArrayList; |
42 import java.util.ArrayList; |
43 import java.util.Collection; |
43 import java.util.Collection; |
|
44 import java.util.Collections; |
44 import java.util.EnumMap; |
45 import java.util.EnumMap; |
45 import java.util.HashMap; |
46 import java.util.HashMap; |
46 import java.util.List; |
47 import java.util.List; |
47 import java.util.Map; |
48 import java.util.Map; |
48 |
49 |
408 } |
409 } |
409 } |
410 } |
410 } |
411 } |
411 |
412 |
412 /** |
413 /** |
|
414 * Get the content of the one of the output streams written by |
|
415 * javadoc. |
|
416 */ |
|
417 public String getOutput(Output output) { |
|
418 return outputMap.get(output); |
|
419 } |
|
420 |
|
421 /** |
|
422 * Get the content of the one of the output streams written by |
|
423 * javadoc. |
|
424 */ |
|
425 public List<String> getOutputLines(Output output) { |
|
426 String text = outputMap.get(output); |
|
427 return (text == null) ? Collections.emptyList() : Arrays.asList(text.split(NL)); |
|
428 } |
|
429 |
|
430 /** |
413 * Check for files in (or not in) the generated output. |
431 * Check for files in (or not in) the generated output. |
414 * @param expectedFound true if all of the files are expected |
432 * @param expectedFound true if all of the files are expected |
415 * to be found, or false if all of the files are expected to be |
433 * to be found, or false if all of the files are expected to be |
416 * not found |
434 * not found |
417 * @param paths the files to check, within the most recent output directory. |
435 * @param paths the files to check, within the most recent output directory. |