Home
last modified time | relevance | path

Searched refs:moduleFile (Results 1 – 12 of 12) sorted by relevance

/external/dagger2/javatests/dagger/internal/codegen/
DModuleFactoryGeneratorTest.java120 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in modulesWithTypeParamsMustBeAbstract() local
127 Compilation compilation = daggerCompiler().compile(moduleFile); in modulesWithTypeParamsMustBeAbstract()
131 .inFile(moduleFile) in modulesWithTypeParamsMustBeAbstract()
220 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in singleProvidesMethodNoArgs() local
265 assertAbout(javaSource()).that(moduleFile) in singleProvidesMethodNoArgs()
272 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in singleProvidesMethodNoArgs_disableNullable() local
316 assertAbout(javaSource()).that(moduleFile) in singleProvidesMethodNoArgs_disableNullable()
324 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in nullableProvides() local
369 assertAbout(javaSources()).that(ImmutableList.of(moduleFile, NULLABLE)) in nullableProvides()
384 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in multipleProvidesMethods() local
[all …]
DProducerModuleFactoryGeneratorTest.java159 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in multipleProducesMethodsWithSameName() local
177 Compilation compilation = daggerCompiler().compile(moduleFile); in multipleProducesMethodsWithSameName()
179 assertThat(compilation).hadErrorContaining(errorMessage).inFile(moduleFile).onLine(8); in multipleProducesMethodsWithSameName()
180 assertThat(compilation).hadErrorContaining(errorMessage).inFile(moduleFile).onLine(12); in multipleProducesMethodsWithSameName()
198 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.Enclosing", in privateModule() local
207 Compilation compilation = daggerCompiler().compile(moduleFile); in privateModule()
211 .inFile(moduleFile) in privateModule()
218 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.Enclosing", in enclosedInPrivateModule() local
229 Compilation compilation = daggerCompiler().compile(moduleFile); in enclosedInPrivateModule()
233 .inFile(moduleFile) in enclosedInPrivateModule()
[all …]
DSubcomponentValidationTest.java66 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.ModuleWithParameters", in factoryMethod_missingModulesWithParameters() local
86 .compile(componentFile, childComponentFile, moduleFile); in factoryMethod_missingModulesWithParameters()
196 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in factoryMethod_duplicateParameter() local
221 .compile(moduleFile, componentFile, childComponentFile); in factoryMethod_duplicateParameter()
233 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in factoryMethod_superflouousModule() local
258 .compile(moduleFile, componentFile, childComponentFile); in factoryMethod_superflouousModule()
269 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in missingBinding() local
301 .compile(moduleFile, componentFile, childComponentFile); in missingBinding()
346 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.ChildModule", in scopeMismatch() local
359 .compile(componentFile, subcomponentFile, moduleFile); in scopeMismatch()
DComponentValidationTest.java60 JavaFileObject moduleFile = in componentOnOverridingBuilder_failsWhenMethodNameConflictsWithStaticCreatorName() local
74 Compilation compilation = daggerCompiler().compile(componentFile, moduleFile); in componentOnOverridingBuilder_failsWhenMethodNameConflictsWithStaticCreatorName()
93 JavaFileObject moduleFile = in componentOnOverridingCreate_failsWhenGeneratedCreateMethod() local
107 Compilation compilation = daggerCompiler().compile(componentFile, moduleFile); in componentOnOverridingCreate_failsWhenGeneratedCreateMethod()
141 JavaFileObject moduleFile = in subcomponentMethodNameBuilder_succeeds() local
155 Compilation compilation = daggerCompiler().compile(componentFile, subcomponentFile, moduleFile); in subcomponentMethodNameBuilder_succeeds()
DScopingValidationTest.java59 JavaFileObject moduleFile = in componentWithoutScopeIncludesScopedBindings_Fail() local
75 Compilation compilation = daggerCompiler().compile(componentFile, typeFile, moduleFile); in componentWithoutScopeIncludesScopedBindings_Fail()
215 JavaFileObject moduleFile = in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() local
234 .compile(componentFile, scopeFile, scopeWithAttribute, typeFile, moduleFile); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail()
254 .compile(componentFile, scopeFile, scopeWithAttribute, typeFile, moduleFile); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail()
266 .inFile(moduleFile) in componentWithScopeIncludesIncompatiblyScopedBindings_Fail()
DSubcomponentCreatorValidationTest.java493 JavaFileObject moduleFile = in testMultipleSettersPerTypeFails() local
545 Compilation compilation = compile(moduleFile, componentFile, childComponentFile); in testMultipleSettersPerTypeFails()
562 JavaFileObject moduleFile = in testMultipleSettersPerTypeIncludingResolvedGenericsFails() local
619 Compilation compilation = compile(moduleFile, componentFile, childComponentFile); in testMultipleSettersPerTypeIncludingResolvedGenericsFails()
753 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in testMissingSettersFail() local
813 compile(moduleFile, module2File, module3File, componentFile, childComponentFile); in testMissingSettersFail()
DComponentCreatorTest.java797 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()
DComponentFactoryTest.java53 JavaFileObject moduleFile = in testUsesParameterNames() local
100 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesParameterNames()
DProductionComponentProcessorTest.java107 JavaFileObject moduleFile = in dependsOnProductionExecutor() local
160 .compile(moduleFile, producerModuleFile, componentFile); in dependsOnProductionExecutor()
DComponentBuilderTest.java53 JavaFileObject moduleFile = in testUsesBuildAndSetterNames() local
111 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesBuildAndSetterNames()
DComponentProcessorTest.java409 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in componentWithModule() local
476 .compile(aFile, bFile, cFile, moduleFile, componentFile); in componentWithModule()
511 JavaFileObject moduleFile = in componentWithAbstractModule() local
557 .compile(aFile, bFile, cFile, moduleFile, componentFile); in componentWithAbstractModule()
1233 JavaFileObject moduleFile = JavaFileObjects.forSourceLines("test.TestModule", in moduleNameCollision() local
1319 .compile(aFile, otherAFile, moduleFile, otherModuleFile, componentFile); in moduleNameCollision()
DMapBindingComponentProcessorTest.java240 JavaFileObject moduleFile = in mapBindingsWithInaccessibleKeys() local
310 Compilation compilation = daggerCompiler().compile(mapKeys, moduleFile, componentFile); in mapBindingsWithInaccessibleKeys()