OcelotProcessor extends AbstractProcessor { static boolean isDone() { return done; }  @Override void init(ProcessingEnvironment processingEnv); @Override boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv); void processElement(Element element);  }
@Test public void isDoneTest() { System.out.println("isDone"); boolean expResult = Boolean.FALSE; boolean result = OcelotProcessor.isDone(); assertThat(result).isEqualTo(expResult); expResult = Boolean.TRUE; OcelotProcessor.setDone(expResult); result = OcelotProcessor.isDone(); assertThat(result).isEqualTo(expResult); }