/external/dagger2/compiler/src/test/java/dagger/internal/codegen/ |
D | SubcomponentBuilderValidationTest.java | 65 .withErrorContaining(String.format(MSGS.moreThanOneRefToSubcomponent(), in testRefSubcomponentAndSubBuilderFails() 99 .withErrorContaining(String.format(MSGS.moreThanOneRefToSubcomponent(), in testRefSubBuilderTwiceFails() 137 .withErrorContaining(String.format(MSGS.moreThanOne(), in testMoreThanOneBuilderFails() 170 .withErrorContaining(MSGS.generics()) in testBuilderGenericsFails() 186 .withErrorContaining(MSGS.mustBeInComponent()) in testBuilderNotInComponentFails() 216 .withErrorContaining(MSGS.missingBuildMethod()) in testBuilderMissingBuildMethodFails() 235 .withErrorContaining(MSGS.isPrivate()) in testPrivateBuilderFails() 254 .withErrorContaining(MSGS.mustBeStatic()) in testNonStaticBuilderFails() 273 .withErrorContaining(MSGS.mustBeAbstract()) in testNonAbstractBuilderFails() 294 .withErrorContaining(MSGS.cxtorOnlyOneAndNoArgs()) in testBuilderOneCxtorWithArgsFails() [all …]
|
D | ComponentBuilderTest.java | 334 .withErrorContaining(String.format(MSGS.moreThanOne(), in testMoreThanOneBuilderFails() 358 .withErrorContaining(MSGS.generics()) in testBuilderGenericsFails() 374 .withErrorContaining(MSGS.mustBeInComponent()) in testBuilderNotInComponentFails() 395 .withErrorContaining(MSGS.missingBuildMethod()) in testBuilderMissingBuildMethodFails() 416 .withErrorContaining(MSGS.isPrivate()) in testPrivateBuilderFails() 437 .withErrorContaining(MSGS.mustBeStatic()) in testNonStaticBuilderFails() 458 .withErrorContaining(MSGS.mustBeAbstract()); in testNonAbstractBuilderFails() 480 .withErrorContaining(MSGS.cxtorOnlyOneAndNoArgs()) in testBuilderOneCxtorWithArgsFails() 504 .withErrorContaining(MSGS.cxtorOnlyOneAndNoArgs()) in testBuilderMoreThanOneCxtorFails() 525 .withErrorContaining(MSGS.mustBeClassOrInterface()) in testBuilderEnumFails() [all …]
|
D | GraphValidationTest.java | 66 .withErrorContaining("test.Bar cannot be provided without an @Provides-annotated method.") in componentOnConcreteClass() 93 .withErrorContaining( in componentProvisionWithNoDependencyChain() 98 .withErrorContaining( in componentProvisionWithNoDependencyChain() 129 .withErrorContaining(expectedError).in(component).onLine(15); in constructorInjectionWithoutAnnotation() 161 .withErrorContaining(expectedError).in(component).onLine(19); in membersInjectWithoutProvision() 203 .withErrorContaining(expectedError).in(component).onLine(23); in cyclicDependency() 254 .withErrorContaining(expectedError) in cyclicDependencyNotIncludingEntryPoint() 325 .withErrorContaining(expectedError) in cyclicDependencyNotBrokenByMapBinding() 381 .withErrorContaining(expectedError) in falsePositiveCyclicDependencyIndirectionDetected() 522 .withErrorContaining(expectedError).in(component).onLine(30); in duplicateExplicitBindings_ProvidesAndComponentProvision() [all …]
|
D | ProducerModuleFactoryGeneratorTest.java | 65 .withErrorContaining(formatModuleErrorMessage(BINDING_METHOD_NOT_IN_MODULE)); in producesMethodNotInModule() 82 .withErrorContaining(formatErrorMessage(BINDING_METHOD_ABSTRACT)); in producesMethodAbstract() 101 .withErrorContaining(formatErrorMessage(BINDING_METHOD_PRIVATE)); in producesMethodPrivate() 118 .withErrorContaining(formatErrorMessage(BINDING_METHOD_MUST_RETURN_A_VALUE)); in producesMethodReturnVoid() 136 .withErrorContaining(PRODUCES_METHOD_RAW_FUTURE); in producesMethodReturnRawFuture() 154 .withErrorContaining(PRODUCES_METHOD_RETURN_TYPE); in producesMethodReturnWildcardFuture() 173 .withErrorContaining(formatErrorMessage(BINDING_METHOD_TYPE_PARAMETER)); in producesMethodWithTypeParameter() 196 .withErrorContaining(PRODUCES_METHOD_RETURN_TYPE); in producesMethodSetValuesWildcard() 219 .withErrorContaining(formatErrorMessage(BINDING_METHOD_SET_VALUES_RAW_SET)); in producesMethodSetValuesRawSet() 242 .withErrorContaining(PRODUCES_METHOD_SET_VALUES_RETURN_SET); in producesMethodSetValuesNotASet() [all …]
|
D | ModuleFactoryGeneratorTest.java | 76 .withErrorContaining(formatModuleErrorMessage(BINDING_METHOD_NOT_IN_MODULE)); in providesMethodNotInModule() 93 .withErrorContaining(formatErrorMessage(BINDING_METHOD_ABSTRACT)); in providesMethodAbstract() 112 .withErrorContaining(formatErrorMessage(BINDING_METHOD_PRIVATE)); in providesMethodPrivate() 129 .withErrorContaining(formatErrorMessage(BINDING_METHOD_MUST_RETURN_A_VALUE)); in providesMethodReturnVoid() 148 .withErrorContaining(formatErrorMessage(BINDING_METHOD_TYPE_PARAMETER)); in providesMethodWithTypeParameter() 171 .withErrorContaining(PROVIDES_METHOD_RETURN_TYPE); in providesMethodSetValuesWildcard() 194 .withErrorContaining(formatErrorMessage(BINDING_METHOD_SET_VALUES_RAW_SET)); in providesMethodSetValuesRawSet() 217 .withErrorContaining(PROVIDES_METHOD_SET_VALUES_RETURN_SET); in providesMethodSetValuesNotASet() 232 .withErrorContaining(MODULES_WITH_TYPE_PARAMS_MUST_BE_ABSTRACT); in modulesWithTypeParamsMustBeAbstract() 258 .withErrorContaining(String.format(ErrorMessages.METHOD_OVERRIDES_PROVIDES_METHOD, in provideOverriddenByNoProvide() [all …]
|
D | InjectConstructorFactoryGeneratorTest.java | 87 .withErrorContaining(INJECT_ON_PRIVATE_CONSTRUCTOR).in(file).onLine(6); in injectOnPrivateConstructor() 104 .withErrorContaining(INJECT_CONSTRUCTOR_ON_INNER_CLASS).in(file).onLine(7); in injectConstructorOnInnerClass() 119 .withErrorContaining(INJECT_CONSTRUCTOR_ON_ABSTRACT_CLASS).in(file).onLine(6); in injectConstructorOnAbstractClass() 455 .withErrorContaining(MULTIPLE_INJECT_CONSTRUCTORS).in(file).onLine(6) in multipleInjectConstructors() 456 .and().withErrorContaining(MULTIPLE_INJECT_CONSTRUCTORS).in(file).onLine(8); in multipleInjectConstructors() 471 .withErrorContaining(MULTIPLE_QUALIFIERS).in(file).onLine(6); in multipleQualifiersOnInjectConstructorParameter() 485 .withErrorContaining(MULTIPLE_SCOPES).in(file).onLine(5).atColumn(1) in injectConstructorOnClassWithMultipleScopes() 486 .and().withErrorContaining(MULTIPLE_SCOPES).in(file).onLine(5).atColumn(9); in injectConstructorOnClassWithMultipleScopes() 503 .withErrorContaining(QUALIFIER_ON_INJECT_CONSTRUCTOR).in(file).onLine(7) in injectConstructorWithQualifier() 504 .and().withErrorContaining(QUALIFIER_ON_INJECT_CONSTRUCTOR).in(file).onLine(8); in injectConstructorWithQualifier() [all …]
|
D | ProductionGraphValidationTest.java | 63 .withErrorContaining("test.Bar cannot be provided without an @Inject constructor or from " in componentWithUnprovidedInput() 88 .withErrorContaining(expectedError).in(component).onLine(11); in componentProductionWithNoDependencyChain() 130 .withErrorContaining(expectedError).in(component).onLine(30); in provisionDependsOnProduction() 162 .withErrorContaining(expectedError).in(component).onLine(20); in provisionEntryPointDependsOnProduction() 211 .withErrorContaining(expectedError) in monitoringDependsOnUnboundType() 266 .withErrorContaining(expectedError) in monitoringDependsOnProduction()
|
D | SubcomponentValidationTest.java | 70 .withErrorContaining( in factoryMethod_missingModulesWithParameters() 97 .withErrorContaining( in factoryMethod_nonModuleParameter() 129 .withErrorContaining( in factoryMethod_duplicateParameter() 162 .withErrorContaining( in factoryMethod_superflouousModule() 202 .withErrorContaining( in missingBinding() 218 .withErrorContaining("interface"); in subcomponentOnConcreteType() 256 .withErrorContaining("@Singleton"); in scopeMismatch()
|
D | GraphValidationScopingTest.java | 70 .withErrorContaining(errorMessage); in componentWithoutScopeIncludesScopedBindings_Fail() 121 .withErrorContaining(errorMessage); in componentWithScopeIncludesIncompatiblyScopedBindings_Fail() 193 .withErrorContaining(errorMessage); in componentWithScopeMayDependOnOnlyOneScopedComponent() 233 .withErrorContaining(errorMessage); in componentWithoutScopeCannotDependOnScopedComponent() 280 .withErrorContaining(errorMessage); in componentWithSingletonScopeMayNotDependOnOtherScope() 346 .withErrorContaining(errorMessage); in componentScopeAncestryMustNotCycle()
|
D | ProductionComponentProcessorTest.java | 40 .withErrorContaining("interface"); in componentOnConcreteClass() 56 .withErrorContaining("interface"); in componentOnEnum() 70 .withErrorContaining("interface"); in componentOnAnnotation() 84 .withErrorContaining("is not annotated with @Module or @ProducerModule"); in nonModuleModule()
|
D | MapBindingComponentProcessorTest.java | 839 .withErrorContaining("The same map key is bound more than once") in mapBindingsWithDuplicateKeys() 841 .withErrorContaining("provideObjectForAKey()") in mapBindingsWithDuplicateKeys() 843 .withErrorContaining("provideObjectForAKeyAgain()") in mapBindingsWithDuplicateKeys() 898 .withErrorContaining("uses more than one @MapKey annotation type") in mapBindingsWithInconsistentKeyAnnotations() 900 .withErrorContaining("provideObjectForAKey()") in mapBindingsWithInconsistentKeyAnnotations() 902 .withErrorContaining("provideObjectForBKey()") in mapBindingsWithInconsistentKeyAnnotations()
|
D | ComponentProcessorTest.java | 58 .withErrorContaining("interface"); in componentOnConcreteClass() 74 .withErrorContaining("interface"); in componentOnEnum() 88 .withErrorContaining("interface"); in componentOnAnnotation() 102 .withErrorContaining("is not annotated with @Module"); in nonModuleModule() 123 .withErrorContaining( in checkCannotReferToModuleOfType() 180 .failsToCompile().withErrorContaining( in doubleBindingFromResolvedModules() 182 .and().withErrorContaining( in doubleBindingFromResolvedModules() 184 .and().withErrorContaining( in doubleBindingFromResolvedModules() 1984 .withErrorContaining( in wildcardGenericsRequiresAtProvides()
|
D | ValidationReportTest.java | 57 .withErrorContaining("simple error") in basicReport() 77 .withErrorContaining("[java.lang.String] simple error") in messageOnDifferentElement() 102 .withErrorContaining("simple error") in subreport()
|
D | MissingBindingSuggestionsTest.java | 98 .withErrorContaining("A binding with matching key exists in component: test.BarComponent"); in suggestsBindingInSeparateComponent() 158 .withErrorContaining("A binding with matching key exists in component: test.BazComponent"); in suggestsBindingInNestedSubcomponent()
|
D | RepeatedModuleValidationTest.java | 52 .withErrorContaining("This module is present in test.TestComponent.") in moduleRepeatedInSubcomponentFactoryMethod()
|
/external/robolectric-shadows/processor/src/test/java/org/robolectric/annotation/processing/validator/ |
D | ImplementsValidatorTest.java | 21 .withErrorContaining("@Implements: must specify <value> or <className>") in implementsWithoutClassOrClassName_shouldNotCompile() 40 .withErrorContaining("@Implements: cannot specify both <value> and <className> attributes") in value_withClassName_shouldNotCompile() 50 ….withErrorContaining("Shadow type must have same type parameters as its real counterpart: expected… in implementsWithParameterMismatch_shouldNotCompile() 60 ….withErrorContaining("Shadow type is missing type parameters, expected <T,N extends java.lang.Numb… in implementsWithMissingParameters_shouldNotCompile() 70 .withErrorContaining("Shadow type has type parameters but real type does not") in implementsWithExtraParameters_shouldNotCompile() 81 .withErrorContaining("Shadow methods must be annotated @Implementation") in constructorShadowWithoutImplementation_shouldNotCompile() 84 .withErrorContaining("Shadow methods must be annotated @Implementation") in constructorShadowWithoutImplementation_shouldNotCompile()
|
D | ImplementationValidatorTest.java | 20 .withErrorContaining("@Implementation without @Implements") in implementationWithoutImplements_shouldNotCompile() 30 ….withErrorContaining("@Implementation methods should be protected (preferred) or public (deprecate… in implementationWithIncorrectVisibility_shouldNotCompile() 33 ….withErrorContaining("@Implementation methods should be protected (preferred) or public (deprecate… in implementationWithIncorrectVisibility_shouldNotCompile() 36 ….withErrorContaining("@Implementation methods should be protected (preferred) or public (deprecate… in implementationWithIncorrectVisibility_shouldNotCompile() 39 ….withErrorContaining("@Implementation methods should be protected (preferred) or public (deprecate… in implementationWithIncorrectVisibility_shouldNotCompile()
|
D | RealObjectValidatorTest.java | 25 .withErrorContaining("@RealObject without @Implements") in realObjectWithoutImplements_shouldNotCompile() 35 .withErrorContaining("@RealObject is missing type parameters") in realObjectParameterizedMissingParameters_shouldNotCompile() 45 .withErrorContaining("Parameter type mismatch: expecting <T,S>, was <S,T>") in realObjectParameterizedMismatch_shouldNotCompile() 74 ….withErrorContaining("@RealObject with type <com.example.objects.UniqueDummy>; expected <com.examp… in realObjectWithTypeMismatch_shouldNotCompile() 84 ….withErrorContaining("@RealObject with type <com.example.objects.UniqueDummy>; expected <com.examp… in realObjectWithClassName_typeMismatch_shouldNotCompile()
|
D | ResetterValidatorTest.java | 19 .withErrorContaining("@Resetter without @Implements") in resetterWithoutImplements_shouldNotCompile() 29 .withErrorContaining("@Resetter methods must be static") in nonStaticResetter_shouldNotCompile() 39 .withErrorContaining("@Resetter methods must be public") in nonPublicResetter_shouldNotCompile() 49 .withErrorContaining("@Resetter methods must not have parameters") in resetterWithParameters_shouldNotCompile()
|
D | SingleClassSubject.java | 68 public SingleLineClause withErrorContaining(final String messageFragment) { in withErrorContaining() method in SingleClassSubject.SingleFileClause 70 return new SingleLineClause(unsuccessful.withErrorContaining(messageFragment).in(source)); in withErrorContaining() 79 unsuccessful.withErrorContaining(messageFragment); in withNoErrorContaining()
|
/external/robolectric-shadows/processor/src/test/java/org/robolectric/annotation/processing/ |
D | RobolectricProcessorTest.java | 96 .withErrorContaining("inner shadow classes must be static"); in generatedFile_shouldComplainAboutNonStaticInnerClasses()
|