OcelotProcessor extends AbstractProcessor { void writeCoreInClassesOutput() { String resPath = ProcessorConstants.SEPARATORCHAR + "js"; fws.copyResourceToClassesOutput(resPath, "core.ng.min.js"); fws.copyResourceToClassesOutput(resPath, "core.ng.js"); fws.copyResourceToClassesOutput(resPath, "core.min.js"); fws.copyResourceToClassesOutput(resPath, "core.js"); }  @Override void init(ProcessingEnvironment processingEnv); @Override boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv); void processElement(Element element);  }
@Test public void writeCoreInClassesOutputTest() { System.out.println("writeCoreInClassesOutput"); instance.writeCoreInClassesOutput(); String resPath = ProcessorConstants.SEPARATORCHAR + "js"; verify(fws).copyResourceToClassesOutput(eq(resPath), eq("core.ng.min.js")); verify(fws).copyResourceToClassesOutput(eq(resPath), eq("core.ng.js")); verify(fws).copyResourceToClassesOutput(eq(resPath), eq("core.min.js")); verify(fws).copyResourceToClassesOutput(eq(resPath), eq("core.js")); }