Slide 33
Slide 33 text
test: Compile Testing[3]
public ProcessorTest {
@Test
public void testProcessor() {
assert_().about(javaSource())
.that(JavaFileObjects.forSourceString("PyonPyon", "final class PyonPyon {}"))
.processedWith(new MyAnnotationProcessor())
.compilesWithoutError();
}
}
[3] https://github.com/google/compile-testing