See: Description
| Class | Description |
|---|---|
| CompileTestCase |
Extends this class and use
@Compile and @Compiled to do test for compilation. |
| CompileTestRunner |
Runner for compilation test.
|
| Annotation Type | Description |
|---|---|
| Compile |
Indicate the test method is a compile period test.
|
| Compiled |
Indicate the test method is a compiled test.
|
@Compile on your test method.
@Test
@Compile(sources = "/HelloWorld.java")
public void test(RoundEnvironment env) {
// Now you are in compile (Annotation Processor) context which is compiling your sources.
}
@Compiled on your test method.
@Test
@Compiled(sources = "/HelloWorld.java")
public void test(Compilation c) {
// Now your sources have been compiled.
// Do assert on the Compilation.
}
Copyright © 2018. All rights reserved.