public class ImmutableTestConfiguration extends Object implements TestConfiguration
| Constructor and Description |
|---|
ImmutableTestConfiguration(List<File> diagnosticFiles,
List<File> testSourceFiles,
List<String> processors,
Map<String,String> options,
boolean shouldEmitDebugInfo) |
| Modifier and Type | Method and Description |
|---|---|
List<File> |
getDiagnosticFiles()
Diagnostic files consist of a set of lines that enumerate expected error/warning diagnostics.
|
List<String> |
getFlatOptions() |
Map<String,String> |
getOptions()
Some Javac command line arguments require arguments themselves (e.g.
|
List<String> |
getProcessors() |
List<File> |
getTestSourceFiles() |
boolean |
shouldEmitDebugInfo() |
String |
toString() |
public List<File> getTestSourceFiles()
getTestSourceFiles in interface TestConfigurationpublic List<File> getDiagnosticFiles()
TestConfigurationfileName:lineNumber: diagnostKind: (messageKey)e.g.,
MethodInvocation.java:17: error: (method.invocation.invalid)If getDiagnosticFiles does NOT return an empty list, then the only diagnostics expected by the TestExecutor will be the ones found in these files. If it does return an empty list, then the only diagnostics expected will be the ones found in comments in the input test files.
It is preferred that users write the errors in the test files and not in diagnostic files.
getDiagnosticFiles in interface TestConfigurationpublic List<String> getProcessors()
getProcessors in interface TestConfigurationpublic Map<String,String> getOptions()
TestConfiguration-classpath takes
a path) getOptions returns a Map(optionName ⇒ optionArgumentIfAny). If an option
does not take an argument, pass null as the value.
E.g.,
Map(
"-AprintAllQualifiers" ⇒ null
"-classpath" ⇒ "myDir1:myDir2"
)
getOptions in interface TestConfigurationpublic List<String> getFlatOptions()
getFlatOptions in interface TestConfigurationpublic boolean shouldEmitDebugInfo()
shouldEmitDebugInfo in interface TestConfiguration