Skip navigation links

Package xdean.annotation.processor.toolkit.test

Framework to quick build compile test in junit.

See: Description

Package xdean.annotation.processor.toolkit.test Description

Framework to quick build compile test in junit.
  1. Compile period test. Use @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.
     }
     
  2. Compilation test. Use @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.
     }
     
Author:
Dean Xu (XDean@github.com)
Skip navigation links

Copyright © 2018. All rights reserved.