-
Adds a source file to the test compilation, from an existing resource file.
Adds a source file to the test compilation, from the string content of the file.
Expects an error message matching matcher
at the line below a comment matching the key.
Tells the compilation helper to expect that no diagnostics will be generated, even if the
source file contains bug markers.
CompilationTestHelper.expectResult(com.sun.tools.javac.main.Main.Result result)
Tells the compilation helper to expect a specific result from the compilation, e.g.
By default, the compilation helper will only inspect diagnostics generated by the check being
tested.
Sets custom command-line arguments for the compilation.
Sets custom command-line arguments for the compilation.
Sets the classpath for the test compilation, overriding the default of using the runtime
classpath of the test execution.