/external/dagger2/compiler/src/test/java/dagger/internal/codegen/ |
D | ComponentBuilderTest.java | 46 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.SimpleComponent", in testEmptyBuilder() local 100 assertAbout(javaSources()).that(ImmutableList.of(injectableTypeFile, componentFile)) in testEmptyBuilder() 119 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in testUsesBuildAndSetterNames() local 191 .that(ImmutableList.of(moduleFile, componentFile)) in testUsesBuildAndSetterNames() 220 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in testIgnoresModulesNotInApi() local 304 .that(ImmutableList.of(module1, module2, componentFile)) in testIgnoresModulesNotInApi() 312 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.SimpleComponent", in testMoreThanOneBuilderFails() local 331 assertAbout(javaSource()).that(componentFile) in testMoreThanOneBuilderFails() 336 .in(componentFile); in testMoreThanOneBuilderFails() 341 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.SimpleComponent", in testBuilderGenericsFails() local [all …]
|
D | ComponentProcessorTest.java | 48 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnConcreteClass() local 55 assertAbout(javaSource()).that(componentFile) in componentOnConcreteClass() 62 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnEnum() local 71 assertAbout(javaSource()).that(componentFile) in componentOnEnum() 78 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnAnnotation() local 85 assertAbout(javaSource()).that(componentFile) in componentOnAnnotation() 92 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in nonModuleModule() local 99 assertAbout(javaSource()).that(componentFile) in nonModuleModule() 113 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.BadComponent", in checkCannotReferToModuleOfType() local 120 assertAbout(javaSources()).that(ImmutableList.of(moduleFile, componentFile)) in checkCannotReferToModuleOfType() [all …]
|
D | SubcomponentValidationTest.java | 31 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_missingModulesWithParameters() local 67 assertAbout(javaSources()).that(ImmutableList.of(componentFile, childComponentFile, moduleFile)) in factoryMethod_missingModulesWithParameters() 74 .in(componentFile).onLine(7); in factoryMethod_missingModulesWithParameters() 78 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_nonModuleParameter() local 94 assertAbout(javaSources()).that(ImmutableList.of(componentFile, childComponentFile)) in factoryMethod_nonModuleParameter() 99 .in(componentFile).onLine(7).atColumn(43); in factoryMethod_nonModuleParameter() 110 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_duplicateParameter() local 126 assertAbout(javaSources()).that(ImmutableList.of(moduleFile, componentFile, childComponentFile)) in factoryMethod_duplicateParameter() 132 .in(componentFile).onLine(7).atColumn(71); in factoryMethod_duplicateParameter() 143 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in factoryMethod_superflouousModule() local [all …]
|
D | MapBindingComponentProcessorTest.java | 101 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithEnumKey() local 202 componentFile)) in mapBindingsWithEnumKey() 261 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithStringKey() local 358 componentFile)) in mapBindingsWithStringKey() 428 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithWrappedKey() local 528 componentFile)) in mapBindingsWithWrappedKey() 599 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapBindingsWithNonProviderValue() local 704 componentFile)). in mapBindingsWithNonProviderValue() 728 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in injectMapWithoutMapBinding() local 794 assertAbout(javaSources()).that(ImmutableList.of(mapModuleFile,componentFile)) in injectMapWithoutMapBinding() [all …]
|
D | ProductionComponentProcessorTest.java | 30 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnConcreteClass() local 37 assertAbout(javaSource()).that(componentFile) in componentOnConcreteClass() 44 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnEnum() local 53 assertAbout(javaSource()).that(componentFile) in componentOnEnum() 60 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in componentOnAnnotation() local 67 assertAbout(javaSource()).that(componentFile) in componentOnAnnotation() 74 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.NotAComponent", in nonModuleModule() local 81 assertAbout(javaSource()).that(componentFile) in nonModuleModule()
|
D | RepeatedModuleValidationTest.java | 37 JavaFileObject componentFile = in moduleRepeatedInSubcomponentFactoryMethod() local 49 .that(ImmutableList.of(MODULE_FILE, subcomponentFile, componentFile)) in moduleRepeatedInSubcomponentFactoryMethod() 53 .in(componentFile) in moduleRepeatedInSubcomponentFactoryMethod() 75 JavaFileObject componentFile = in moduleRepeatedInSubcomponentBuilderMethod() local 87 .that(ImmutableList.of(MODULE_FILE, subcomponentFile, componentFile)) in moduleRepeatedInSubcomponentBuilderMethod() 105 JavaFileObject componentFile = in moduleRepeatedButNotPassed() local 117 .that(ImmutableList.of(MODULE_FILE, subcomponentFile, componentFile)) in moduleRepeatedButNotPassed()
|
D | SubcomponentBuilderValidationTest.java | 38 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.ParentComponent", in testRefSubcomponentAndSubBuilderFails() local 62 assertAbout(javaSources()).that(ImmutableList.of(componentFile, childComponentFile)) in testRefSubcomponentAndSubBuilderFails() 67 .in(componentFile); in testRefSubcomponentAndSubBuilderFails() 72 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.ParentComponent", in testRefSubBuilderTwiceFails() local 96 assertAbout(javaSources()).that(ImmutableList.of(componentFile, childComponentFile)) in testRefSubBuilderTwiceFails() 101 .in(componentFile); in testRefSubBuilderTwiceFails() 106 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.ParentComponent", in testMoreThanOneBuilderFails() local 134 assertAbout(javaSources()).that(ImmutableList.of(componentFile, childComponentFile)) in testMoreThanOneBuilderFails() 144 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.ParentComponent", in testBuilderGenericsFails() local 167 assertAbout(javaSources()).that(ImmutableList.of(componentFile, childComponentFile)) in testBuilderGenericsFails() [all …]
|
D | InaccessibleTypeTest.java | 64 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in basicInjectedType() local 141 componentFile)) in basicInjectedType() 194 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in memberInjectedType() local 256 componentFile)) in memberInjectedType()
|
D | MapKeyProcessorTest.java | 190 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapKeyComponentFileWithDisorderedKeyField() local 293 componentFile)) in mapKeyComponentFileWithDisorderedKeyField() 366 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in mapKeyComponentFileWithDefaultField() local 469 componentFile)) in mapKeyComponentFileWithDefaultField()
|
D | GraphValidationScopingTest.java | 31 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.MyComponent", in componentWithoutScopeIncludesScopedBindings_Fail() local 67 assert_().about(javaSources()).that(asList(componentFile, typeFile, moduleFile)) in componentWithoutScopeIncludesScopedBindings_Fail() 74 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.MyComponent", in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() local 118 assert_().about(javaSources()).that(asList(componentFile, scopeFile, typeFile, moduleFile)) in componentWithScopeIncludesIncompatiblyScopedBindings_Fail()
|
D | MembersInjectionTest.java | 55 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in parentClass_noInjectedMembers() local 112 .that(ImmutableList.of(childFile, parentFile, componentFile)) in parentClass_noInjectedMembers() 144 JavaFileObject componentFile = JavaFileObjects.forSourceLines("test.TestComponent", in parentClass_injectedMembersInSupertype() local 201 .that(ImmutableList.of(childFile, parentFile, depFile, componentFile)) in parentClass_injectedMembersInSupertype()
|