@Test public void init_setsUpMessager() throws Exception { annotationProcessor.init(processingEnvironment); verify(processingEnvironment).getMessager(); }
@Override public synchronized void init(final ProcessingEnvironment processingEnv) { super.init(processingEnv); versionCode = processingEnv.getOptions().get(OPTION_VERSION_CODE); versionName = processingEnv.getOptions().get(OPTION_VERSION_NAME); messager = processingEnv.getMessager(); }
AnnotationProcessor extends AbstractProcessor { @Override public synchronized void init(final ProcessingEnvironment processingEnv) { super.init(processingEnv); versionCode = processingEnv.getOptions().get(OPTION_VERSION_CODE); versionName = processingEnv.getOptions().get(OPTION_VERSION_NAME); messager = processingEnv.getMessager(); } }
AnnotationProcessor extends AbstractProcessor { @Override public synchronized void init(final ProcessingEnvironment processingEnv) { super.init(processingEnv); versionCode = processingEnv.getOptions().get(OPTION_VERSION_CODE); versionName = processingEnv.getOptions().get(OPTION_VERSION_NAME); messager = processingEnv.getMessager(); }  }
AnnotationProcessor extends AbstractProcessor { @Override public synchronized void init(final ProcessingEnvironment processingEnv) { super.init(processingEnv); versionCode = processingEnv.getOptions().get(OPTION_VERSION_CODE); versionName = processingEnv.getOptions().get(OPTION_VERSION_NAME); messager = processingEnv.getMessager(); }  @Override synchronized void init(final ProcessingEnvironment processingEnv); @Override boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv); @Override SourceVersion getSupportedSourceVersion(); }
AnnotationProcessor extends AbstractProcessor { @Override public synchronized void init(final ProcessingEnvironment processingEnv) { super.init(processingEnv); versionCode = processingEnv.getOptions().get(OPTION_VERSION_CODE); versionName = processingEnv.getOptions().get(OPTION_VERSION_NAME); messager = processingEnv.getMessager(); }  @Override synchronized void init(final ProcessingEnvironment processingEnv); @Override boolean process(final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv); @Override SourceVersion getSupportedSourceVersion();  }