public void testBug471995() throws IOException {
   JavaCompiler compiler = BatchTestUtils.getEclipseCompiler();
   File targetFolder =
       TestUtils.concatPath(
           BatchTestUtils.getSrcFolderName(), "targets", "AnnotationProcessorTests", "bug471995");
   BatchTestUtils.copyResources("targets/AnnotationProcessorTests/bug471995", targetFolder);
   List<String> options = new ArrayList<String>();
   options.add("-proc:only");
   BatchTestUtils.compileTree(compiler, options, targetFolder, null);
 }
 public void testBug456986() throws IOException {
   JavaCompiler compiler = BatchTestUtils.getEclipseCompiler();
   File targetFolder =
       TestUtils.concatPath(
           BatchTestUtils.getSrcFolderName(), "targets", "AnnotationProcessorTests", "bug456986");
   BatchTestUtils.copyResources("targets/AnnotationProcessorTests/bug456986", targetFolder);
   List<String> options = new ArrayList<String>();
   final String PROC =
       "org.eclipse.jdt.compiler.apt.tests.processors.AnnotationProcessorTests.Bug456986Proc";
   options.add("-processorpath");
   options.add(" ");
   options.add("-processor");
   options.add(PROC);
   boolean success = BatchTestUtils.compileTreeWithErrors(compiler, options, targetFolder, null);
   assertEquals(true, success);
 }
 public void testBug463062() throws IOException {
   JavaCompiler compiler = BatchTestUtils.getEclipseCompiler();
   File targetFolder =
       TestUtils.concatPath(
           BatchTestUtils.getSrcFolderName(), "targets", "AnnotationProcessorTests", "bug463062");
   BatchTestUtils.copyResources("targets/AnnotationProcessorTests/bug463062", targetFolder);
   List<String> options = new ArrayList<String>();
   final String PROC =
       "org.eclipse.jdt.compiler.apt.tests.processors.AnnotationProcessorTests.Bug463062Proc";
   options.add("-processorpath");
   options.add(" ");
   options.add("-processor");
   options.add(PROC);
   BatchTestUtils.compileTreeWithErrors(compiler, options, targetFolder, null, true);
   assertNull(System.getProperty(PROC));
 }
 public void testBug493837() throws IOException {
   JavaCompiler compiler = BatchTestUtils.getEclipseCompiler();
   File targetFolder =
       TestUtils.concatPath(
           BatchTestUtils.getSrcFolderName(), "targets", "AnnotationProcessorTests", "bug493837");
   BatchTestUtils.copyResources("targets/AnnotationProcessorTests/bug493837", targetFolder);
   List<String> options = new ArrayList<String>();
   final String PROC =
       "org.eclipse.jdt.compiler.apt.tests.processors.AnnotationProcessorTests.Bug493837Proc";
   options.add("-processorpath");
   options.add(" ");
   options.add("-processor");
   options.add(PROC);
   DiagnosticReport<JavaFileObject> diagnosticListener = new DiagnosticReport<JavaFileObject>();
   BatchTestUtils.compileTree(compiler, options, targetFolder, false, diagnosticListener);
   assertNull(System.getProperty(PROC));
 }
 public void testBug317216() throws IOException {
   JavaCompiler compiler = BatchTestUtils.getEclipseCompiler();
   File targetFolder =
       TestUtils.concatPath(
           BatchTestUtils.getSrcFolderName(), "targets", "AnnotationProcessorTests", "bug317216");
   BatchTestUtils.copyResources("targets/AnnotationProcessorTests/bug317216", targetFolder);
   List<String> options = new ArrayList<String>();
   final String PROC =
       "org.eclipse.jdt.compiler.apt.tests.processors.AnnotationProcessorTests.Bug317216Proc";
   options.add("-processorpath");
   options.add(" ");
   options.add("-processor");
   options.add(PROC);
   DiagnosticReport<JavaFileObject> diagnosticListener = new DiagnosticReport<JavaFileObject>();
   BatchTestUtils.compileTreeWithErrors(compiler, options, targetFolder, diagnosticListener, true);
   assertNull(System.getProperty(PROC));
   assertEquals("incorrect number of messages", 0, diagnosticListener.count);
   assertNull(System.getProperty(PROC));
 }