Source:
private void runAnnotProcBuildingResource ( @ javax.annotation.Nonnull com.android.jack.test.helper.ErrorTestHelper te ) throws java.lang.Exception { buildAnnotationRequiredByAnnotationProc ( te , new java.lang.Class < ? > [ ] { com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationTest.class } ) ; com.android.jack.test.toolchain.AbstractTestTools.createFile ( te.getSourceFolder ( ) , "jack.incremental" , "A.java" , ( ( ( ( ( ( ( "package jack.incremental;\n" + "import " ) + ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationTest.class . getName ( ) ) ) + ";\n" ) + "@" ) + ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationTest.class . getSimpleName ( ) ) ) + "\n" ) + "public class A {}\n" ) ) ; com.android.jack.test.toolchain.JackApiToolchainBase jackApiToolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackApiToolchainBase.class ) ; jackApiToolchain.setAnnotationProcessorClass ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationProcessor.class ) ; jackApiToolchain.setAnnotationProcessorOutDir ( te.getTestingFolder ( ) ) ; jackApiToolchain.addToClasspath ( jackApiToolchain.getDefaultBootClasspath ( ) ) . addToClasspath ( te.getJackFolder ( ) ) . srcToExe ( te.getOutputDexFolder ( ) , false , te.getSourceFolder ( ) ) ; java.io.File discoverFile = new java.io.File ( te.getTestingFolder ( ) , com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationProcessor.FILENAME ) ; junit.framework.Assert.assertTrue ( discoverFile.exists ( ) ) ; java.io.LineNumberReader lnr = new java.io.LineNumberReader ( new java.io.FileReader ( discoverFile ) ) ; junit.framework.Assert.assertEquals ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationTest.class . getName ( ) , lnr.readLine ( ) ) ; junit.framework.Assert.assertEquals ( "jack.incremental.A" , lnr.readLine ( ) ) ; junit.framework.Assert.assertNull ( lnr.readLine ( ) ) ; lnr.close ( ) ; }

Target:
private void runAnnotProcBuildingResource ( @ javax.annotation.Nonnull com.android.jack.test.helper.ErrorTestHelper te ) throws java.lang.Exception { buildAnnotationRequiredByAnnotationProc ( te , new java.lang.Class < ? > [ ] { com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationTest.class } ) ; com.android.jack.test.toolchain.AbstractTestTools.createFile ( te.getSourceFolder ( ) , "jack.incremental" , "A.java" , ( ( ( ( ( ( ( "package jack.incremental;\n" + "import " ) + ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationTest.class . getName ( ) ) ) + ";\n" ) + "@" ) + ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationTest.class . getSimpleName ( ) ) ) + "\n" ) + "public class A {}\n" ) ) ; com.android.jack.test.toolchain.JackApiToolchain jackApiToolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackApiToolchain.class ) ; jackApiToolchain.setAnnotationProcessorClass ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationProcessor.class ) ; jackApiToolchain.setAnnotationProcessorOutDir ( te.getTestingFolder ( ) ) ; jackApiToolchain.addToClasspath ( jackApiToolchain.getDefaultBootClasspath ( ) ) . addToClasspath ( te.getJackFolder ( ) ) . srcToExe ( te.getOutputDexFolder ( ) , false , te.getSourceFolder ( ) ) ; java.io.File discoverFile = new java.io.File ( te.getTestingFolder ( ) , com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationProcessor.FILENAME ) ; junit.framework.Assert.assertTrue ( discoverFile.exists ( ) ) ; java.io.LineNumberReader lnr = new java.io.LineNumberReader ( new java.io.FileReader ( discoverFile ) ) ; junit.framework.Assert.assertEquals ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationTest.class . getName ( ) , lnr.readLine ( ) ) ; junit.framework.Assert.assertEquals ( "jack.incremental.A" , lnr.readLine ( ) ) ; junit.framework.Assert.assertNull ( lnr.readLine ( ) ) ; lnr.close ( ) ; }