/external/dagger2/javatests/dagger/internal/codegen/ |
D | ModuleFactoryGeneratorTest.java | 122 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in modulesWithTypeParamsMustBeAbstract() local 129 Compilation compilation = daggerCompiler().compile(moduleFile); in modulesWithTypeParamsMustBeAbstract() 133 .inFile(moduleFile) in modulesWithTypeParamsMustBeAbstract() 210 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in singleProvidesMethodNoArgs() local 251 assertAbout(javaSource()).that(moduleFile) in singleProvidesMethodNoArgs() 258 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in singleProvidesMethodNoArgs_disableNullable() local 298 assertAbout(javaSource()).that(moduleFile) in singleProvidesMethodNoArgs_disableNullable() 306 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in nullableProvides() local 347 assertAbout(javaSources()).that(ImmutableList.of(moduleFile, NULLABLE)) in nullableProvides() 362 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in multipleProvidesMethods() local [all …]
|
D | ProducerModuleFactoryGeneratorTest.java | 161 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in multipleProducesMethodsWithSameName() local 179 Compilation compilation = daggerCompiler().compile(moduleFile); in multipleProducesMethodsWithSameName() 181 assertThat(compilation).hadErrorContaining(errorMessage).inFile(moduleFile).onLine(8); in multipleProducesMethodsWithSameName() 182 assertThat(compilation).hadErrorContaining(errorMessage).inFile(moduleFile).onLine(12); in multipleProducesMethodsWithSameName() 200 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.Enclosing", in privateModule() local 209 Compilation compilation = daggerCompiler().compile(moduleFile); in privateModule() 213 .inFile(moduleFile) in privateModule() 220 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.Enclosing", in enclosedInPrivateModule() local 231 Compilation compilation = daggerCompiler().compile(moduleFile); in enclosedInPrivateModule() 235 .inFile(moduleFile) in enclosedInPrivateModule() [all …]
|
D | SubcomponentValidationTest.java | 68 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.ModuleWithParameters", in factoryMethod_missingModulesWithParameters() local 88 .compile(componentFile, childComponentFile, moduleFile); in factoryMethod_missingModulesWithParameters() 198 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in factoryMethod_duplicateParameter() local 223 .compile(moduleFile, componentFile, childComponentFile); in factoryMethod_duplicateParameter() 235 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in factoryMethod_superflouousModule() local 260 .compile(moduleFile, componentFile, childComponentFile); in factoryMethod_superflouousModule() 271 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in missingBinding() local 303 .compile(moduleFile, componentFile, childComponentFile); in missingBinding() 348 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.ChildModule", in scopeMismatch() local 361 .compile(componentFile, subcomponentFile, moduleFile); in scopeMismatch()
|
D | ScopingValidationTest.java | 59 JavaFileObject moduleFile = in componentWithoutScopeIncludesScopedBindings_Fail() local 75 Compilation compilation = daggerCompiler().compile(componentFile, typeFile, moduleFile); in componentWithoutScopeIncludesScopedBindings_Fail() 212 JavaFileObject moduleFile = in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() local 231 .compile(componentFile, scopeFile, scopeWithAttribute, typeFile, moduleFile); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 247 .compile(componentFile, scopeFile, scopeWithAttribute, typeFile, moduleFile); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 257 .inFile(moduleFile) in componentWithScopeIncludesIncompatiblyScopedBindings_Fail()
|
D | SubcomponentCreatorValidationTest.java | 489 JavaFileObject moduleFile = in testMultipleSettersPerTypeFails() local 541 Compilation compilation = compile(moduleFile, componentFile, childComponentFile); in testMultipleSettersPerTypeFails() 558 JavaFileObject moduleFile = in testMultipleSettersPerTypeIncludingResolvedGenericsFails() local 615 Compilation compilation = compile(moduleFile, componentFile, childComponentFile); in testMultipleSettersPerTypeIncludingResolvedGenericsFails() 750 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in testMissingSettersFail() local 810 compile(moduleFile, module2File, module3File, componentFile, childComponentFile); in testMissingSettersFail()
|
D | ComponentFactoryTest.java | 54 JavaFileObject moduleFile = in testUsesParameterNames() local 101 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesParameterNames()
|
D | ComponentCreatorTest.java | 797 JavaFileObject moduleFile = in testMultipleSettersPerTypeFails() local 838 Compilation compilation = compile(moduleFile, componentFile); in testMultipleSettersPerTypeFails() 856 JavaFileObject moduleFile = in testMultipleSettersPerTypeIncludingResolvedGenericsFails() local 902 Compilation compilation = compile(moduleFile, componentFile); in testMultipleSettersPerTypeIncludingResolvedGenericsFails() 970 JavaFileObject moduleFile = in testMissingSettersFail() local 1037 .compile(moduleFile, module2File, module3File, componentFile, otherComponent); in testMissingSettersFail()
|
D | ProductionComponentProcessorTest.java | 109 JavaFileObject moduleFile = in dependsOnProductionExecutor() local 162 .compile(moduleFile, producerModuleFile, componentFile); in dependsOnProductionExecutor()
|
D | ComponentBuilderTest.java | 54 JavaFileObject moduleFile = in testUsesBuildAndSetterNames() local 112 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesBuildAndSetterNames()
|
D | ComponentProcessorTest.java | 473 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in componentWithModule() local 541 .compile(aFile, bFile, cFile, moduleFile, componentFile); in componentWithModule() 576 JavaFileObject moduleFile = in componentWithAbstractModule() local 622 .compile(aFile, bFile, cFile, moduleFile, componentFile); in componentWithAbstractModule() 1284 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in moduleNameCollision() local 1370 .compile(aFile, otherAFile, moduleFile, otherModuleFile, componentFile); in moduleNameCollision()
|
D | MapBindingComponentProcessorTest.java | 281 JavaFileObject moduleFile = in mapBindingsWithInaccessibleKeys() local 351 Compilation compilation = daggerCompiler().compile(mapKeys, moduleFile, componentFile); in mapBindingsWithInaccessibleKeys()
|