public class ImmutableTestConfiguration extends java.lang.Object implements TestConfiguration
Constructor and Description |
---|
ImmutableTestConfiguration(java.util.List<java.io.File> diagnosticFiles,
java.util.List<java.io.File> testSourceFiles,
java.util.List<java.lang.String> processors,
java.util.Map<java.lang.String,java.lang.String> options,
boolean shouldEmitDebugInfo) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.io.File> |
getDiagnosticFiles()
Diagnostic files consist of a set of lines that enumerate expected error/warning diagnostics.
|
java.util.List<java.lang.String> |
getFlatOptions() |
java.util.Map<java.lang.String,java.lang.String> |
getOptions()
Some Javac command line arguments require arguments themselves (e.g.
|
java.util.List<java.lang.String> |
getProcessors() |
java.util.List<java.io.File> |
getTestSourceFiles() |
boolean |
shouldEmitDebugInfo() |
java.lang.String |
toString() |
public ImmutableTestConfiguration(java.util.List<java.io.File> diagnosticFiles, java.util.List<java.io.File> testSourceFiles, java.util.List<java.lang.String> processors, java.util.Map<java.lang.String,java.lang.String> options, boolean shouldEmitDebugInfo)
public java.util.List<java.io.File> getTestSourceFiles()
getTestSourceFiles
in interface TestConfiguration
public java.util.List<java.io.File> getDiagnosticFiles()
TestConfiguration
fileName: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 TestConfiguration
public java.util.List<java.lang.String> getProcessors()
getProcessors
in interface TestConfiguration
public java.util.Map<java.lang.String,java.lang.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 TestConfiguration
public java.util.List<java.lang.String> getFlatOptions()
getFlatOptions
in interface TestConfiguration
public boolean shouldEmitDebugInfo()
shouldEmitDebugInfo
in interface TestConfiguration
public java.lang.String toString()
toString
in class java.lang.Object