Interface CompileTester
- All Known Implementing Classes:
JavaSourcesSubject, JavaSourcesSubject.SingleSourceAdapter
public interface CompileTester
The root of the fluent API for testing the result of compilation.
This interface exists only to facilitate a fluent API and is subject to change. Implementing this interface is not recommended.
- Author:
- Gregory Kick
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe clause in the fluent API that allows for chaining test conditions.static interfaceThe clause in the fluent API for further tests on successful compilations without warnings.static interfaceThe clause in the fluent API that checks that a diagnostic starts at a particular column.static interfaceThe clause in the fluent API that checks notes in a compilation.static interfaceThe clause in the fluent API that checks notes and warnings in a compilation.static interfaceThe clause in the fluent API that checks that a diagnostic is associated with a particularJavaFileObject.static interfaceThe clause in the fluent API that checks that files were generated.static interfaceThe clause in the fluent API that checks that a diagnostic is on a particular line.static interfaceThe clause in the fluent API for further tests on successful compilations.static interfaceThe clause in the fluent API that checks that a generated file has the specified contents.static interfaceThe clause in the fluent API for further tests on unsuccessful compilations. -
Method Summary
Modifier and TypeMethodDescriptionThe clause in the fluent API that tests for successful compilation without errors.The clause in the fluent API that tests for successful compilation without warnings or errors.The clause in the fluent API that tests for unsuccessful compilation.voidparsesAs(JavaFileObject first, JavaFileObject... rest) The clause in the fluent API that tests that the code parses equivalently to the specified code.
-
Method Details
-
parsesAs
The clause in the fluent API that tests that the code parses equivalently to the specified code. -
compilesWithoutError
The clause in the fluent API that tests for successful compilation without errors. -
compilesWithoutWarnings
The clause in the fluent API that tests for successful compilation without warnings or errors. -
failsToCompile
The clause in the fluent API that tests for unsuccessful compilation.
-