Source:
public void testAnnotationProcessorError005 ( ) throws java.lang.Exception { com.android.jack.test.helper.ErrorTestHelper te = new com.android.jack.test.helper.ErrorTestHelper ( ) ; buildAnnotationRequiredByAnnotationProc ( te , new java.lang.Class < ? > [ ] { com.android.jack.errorhandling.annotationprocessor.SourceAnnotationTest.class , com.android.jack.errorhandling.annotationprocessor.SourceErrorAnnotationTest.class } ) ; com.android.jack.test.toolchain.AbstractTestTools.createFile ( te.getSourceFolder ( ) , "jack.incremental" , "A.java" , ( ( ( ( ( ( ( "package jack.incremental;\n" + "import " ) + ( com.android.jack.errorhandling.annotationprocessor.SourceAnnotationTest.class . getName ( ) ) ) + ";\n" ) + "@" ) + ( com.android.jack.errorhandling.annotationprocessor.SourceAnnotationTest.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.SourceAnnotationProcessor.class ) ; jackApiToolchain.setAnnotationProcessorOutDir ( te.getTestingFolder ( ) ) ; java.io.File dexOutput = te.getOutputDexFolder ( ) ; jackApiToolchain.srcToExe ( ( ( ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( jackApiToolchain.getDefaultBootClasspath ( ) ) ) + ( java.io.File.pathSeparator ) ) + ( te.getJackFolder ( ) ) ) , dexOutput , false , te.getSourceFolder ( ) ) ; org.jf.dexlib.DexFile dexFile = new org.jf.dexlib.DexFile ( new java.io.File ( dexOutput , jackApiToolchain.getBinaryFileName ( ) ) ) ; java.util.List < java.lang.String > sourceFileInDex = new java.util.ArrayList < java.lang.String > ( ) ; for ( org.jf.dexlib.ClassDefItem classDef : dexFile.ClassDefsSection.getItems ( ) ) { sourceFileInDex.add ( classDef.getSourceFile ( ) . getStringValue ( ) ) ; } junit.framework.Assert.assertTrue ( sourceFileInDex.contains ( "ADuplicated.java" ) ) ; junit.framework.Assert.assertTrue ( sourceFileInDex.contains ( "A.java" ) ) ; }

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.JackApiToolchainBase jackApiToolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackApiToolchainBase.class ) ; jackApiToolchain.setAnnotationProcessorClasses ( java.util.Collections.singletonList ( com.android.jack.errorhandling.annotationprocessor.ResourceAnnotationProcessor.class . getName ( ) ) ) ; jackApiToolchain.addToClasspath ( jackApiToolchain.getDefaultBootClasspath ( ) ) . addToClasspath ( te.getJackFolder ( ) ) . srcToExe ( te.getOutputDexFolder ( ) , false , te.getSourceFolder ( ) ) ; java.io.File discoverFile = new java.io.File ( te.getOutputDexFolder ( ) , 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 ( ) ; }