/external/guice/core/test/com/google/inject/ |
D | ProvisionExceptionsTest.java | 51 assertEquals(1, pe.getErrorMessages().size()); in testConstructorRuntimeException() 53 … assertEquals(IllegalStateException.class, Errors.getOnlyCause(pe.getErrorMessages()).getClass()); in testConstructorRuntimeException() 73 assertEquals(1, pe.getErrorMessages().size()); in testConstructorCheckedException() 75 assertEquals(IOException.class, Errors.getOnlyCause(pe.getErrorMessages()).getClass()); in testConstructorCheckedException() 98 assertEquals(1, pe.getErrorMessages().size()); in testCustomProvidersRuntimeException() 100 … assertEquals(IllegalStateException.class, Errors.getOnlyCause(pe.getErrorMessages()).getClass()); in testCustomProvidersRuntimeException() 121 assertEquals(1, pe.getErrorMessages().size()); in testProviderMethodRuntimeException() 123 … assertEquals(IllegalStateException.class, Errors.getOnlyCause(pe.getErrorMessages()).getClass()); in testProviderMethodRuntimeException() 145 assertEquals(1, pe.getErrorMessages().size()); in testProviderMethodCheckedException() 147 assertEquals(IOException.class, Errors.getOnlyCause(pe.getErrorMessages()).getClass()); in testProviderMethodCheckedException()
|
D | JitBindingsTest.java | 172 assertEquals(1, expected.getErrorMessages().size()); in testFailsIfInjectingScopedDirectlyWhenItIsntBound() 202 assertEquals(1, expected.getErrorMessages().size()); in testJitGetFails() 219 assertEquals(1, expected.getErrorMessages().size()); in testJitInjectionFails() 234 assertEquals(1, expected.getErrorMessages().size()); in testJitProviderGetFails() 251 assertEquals(1, expected.getErrorMessages().size()); in testJitProviderInjectionFails() 322 assertEquals(1, expected.getErrorMessages().size()); in testChildInjectorInheritsOption() 372 assertEquals(1, expected.getErrorMessages().size()); in testChildInjectorAddsOption() 420 assertEquals(1, expected.getErrorMessages().size()); in testPrivateModulesInheritOptions() 458 assertEquals(1, expected.getErrorMessages().size()); in testPrivateModuleAddsOption() 534 assertEquals(1, expected.getErrorMessages().size()); in testJitLinkedBindingInParentFails() [all …]
|
D | RequireAtInjectOnConstructorsTest.java | 40 assertEquals(1, ce.getErrorMessages().size()); in testNoCxtors_explicitBinding() 77 assertEquals(1, ce.getErrorMessages().size()); in testNoCxtors_implicitBinding() 101 assertEquals(1, ce.getErrorMessages().size()); in testNoCxtors_inheritedByPrivateModules() 121 assertEquals(2, ce.getErrorMessages().size()); in testNoCxtors_accumulatesAllErrors() 151 assertEquals(1, ce.getErrorMessages().size()); in testNoCxtors_separateOptionsForPrivateModules() 170 assertEquals(1, ce.getErrorMessages().size()); in testManyConstructorsButNoneWithAtInject()
|
D | ProvisionListenerTest.java | 62 assertEquals(1, pe.getErrorMessages().size()); in testExceptionInListenerBeforeProvisioning() 83 assertEquals(1, pe.getErrorMessages().size()); in testExceptionInListenerAfterProvisioning() 104 assertEquals(1, pe.getErrorMessages().size()); in testExceptionInProvisionExplicitlyCalled() 124 assertEquals(1, pe.getErrorMessages().size()); in testExceptionInProvisionAutomaticallyCalled() 150 assertEquals(1, expected.getErrorMessages().size()); in testExceptionInFieldProvision() 180 assertEquals(1, expected.getErrorMessages().size()); in testExceptionInCxtorProvision() 204 assertEquals(1, pe.getErrorMessages().size()); in testListenerCallsProvisionTwice() 262 assertEquals(1, pe.getErrorMessages().size()); in testNotifyEarlyListenersIfFailBeforeProvision() 288 assertEquals(1, pe.getErrorMessages().size()); in testNotifyLaterListenersIfFailAfterProvision()
|
D | ImplicitBindingTest.java | 163 Message msg = Iterables.getOnlyElement(expected.getErrorMessages()); in assertFailure() 314 Message msg = Iterables.getOnlyElement(expected.getErrorMessages()); in testRecursiveJitBindingsCleanupCorrectly() 386 Message msg = Iterables.getOnlyElement(expected.getErrorMessages()); in testImplementedByEnum()
|
D | PrivateModuleTest.java | 464 assertEquals(1, expected.getErrorMessages().size()); in testParentBindsSomethingInPrivate() 484 assertEquals(1, expected.getErrorMessages().size()); in testParentBindingToPrivateLinkedJitBinding() 503 assertEquals(1, expected.getErrorMessages().size()); in testParentBindingToPrivateJitBinding()
|
D | BinderTest.java | 102 assertEquals(4, e.getErrorMessages().size()); in testMissingBindings() 136 assertEquals(1, e.getErrorMessages().size()); in testMissingDependency() 441 assertSame(message, Iterables.getOnlyElement(expected.getErrorMessages())); in testUserReportedError()
|
D | ParentInjectorTest.java | 76 assertContains(Iterables.getOnlyElement(ce.getErrorMessages()).getMessage(), in testChildCannotBindToAParentJitBinding()
|
D | InjectorTest.java | 227 assertEquals(1, ce.getErrorMessages().size());
|
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/ |
D | ThrowingProviderTest.java | 328 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToNonInterfaceType_Bind() 348 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToNonInterfaceType_Provides() 363 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToSubSubInterface_Bind() 383 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToSubSubInterface_Provides() 401 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToInterfaceWithExtraMethod_Bind() 422 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToInterfaceWithExtraMethod_Provides() 633 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testProviderMethodWithWrongException() 680 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testProviderMethodWithSuperclassFails() 725 List<Message> errors = ImmutableList.copyOf(ce.getErrorMessages()); in testProviderMethodWithManyExceptions() 754 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testMoreTypeParameters() [all …]
|
D | CheckedProviderTest.java | 444 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToNonInterfaceType_Bind() 465 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToNonInterfaceType_Provides() 481 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToSubSubInterface_Bind() 502 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToSubSubInterface_Provides() 521 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToInterfaceWithExtraMethod_Bind() 543 Iterables.getOnlyElement(expected.getErrorMessages()).getMessage()); in testBindingToInterfaceWithExtraMethod_Provides() 931 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testProviderMethodWithWrongException() 953 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testCxtorWithWrongException() 1047 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testProviderMethodWithSuperclassExceptionFails() 1069 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testCxtorWithSuperclassExceptionFails() [all …]
|
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/ |
D | FactoryModuleBuilderTest.java | 71 assertEquals(1, ce.getErrorMessages().size()); in testImplicitForwardingAssistedBindingFailsWithInterface() 91 assertEquals(1, ce.getErrorMessages().size()); in testImplicitForwardingAssistedBindingFailsWithAbstractClass() 130 assertEquals(1, ce.getErrorMessages().size()); in testExplicitForwardingAssistedBindingFailsWithInterface() 153 assertEquals(1, ce.getErrorMessages().size()); in testExplicitForwardingAssistedBindingFailsWithAbstractClass() 291 assertEquals(1, ce.getErrorMessages().size()); in testSimilarBindingsWithConflictingImplementations() 337 Collection<Message> messages = ce.getErrorMessages(); in testGenericErrorMessageMakesSense() 499 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testFactoryPublicAndReturnTypeNotPublic() 519 assertEquals(1, ce.getErrorMessages().size()); in testSingletonScopeOnAssistedClassIsIgnored() 524 Iterables.getOnlyElement(ce.getErrorMessages()).getMessage()); in testSingletonScopeOnAssistedClassIsIgnored()
|
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | ProvidesIntoTest.java | 225 assertEquals(1, ce.getErrorMessages().size()); in testArrayKeys_unwrapValuesTrue() 281 assertEquals(1, ce.getErrorMessages().size()); in testProvidesIntoSetWithMapKey() 301 assertEquals(1, ce.getErrorMessages().size()); in testProvidesIntoOptionalWithMapKey() 316 assertEquals(1, ce.getErrorMessages().size()); in testProvidesIntoMapWithoutMapKey() 343 assertEquals(1, ce.getErrorMessages().size()); in testMoreThanOneMapKeyAnnotation() 368 assertEquals(1, ce.getErrorMessages().size()); in testMapKeyMissingValueMethod()
|
D | OptionalBinderTest.java | 142 assertEquals(1, ce.getErrorMessages().size()); in testTypeNotBoundByDefault() 496 assertEquals(ce.getMessage(), 1, ce.getErrorMessages().size()); in testDifferentBindingsFail_defaults() 516 assertEquals(ce.getMessage(), 1, ce.getErrorMessages().size()); in testDifferentBindingsFail_actual() 538 assertEquals(ce.getMessage(), 2, ce.getErrorMessages().size()); in testDifferentBindingsFail_both()
|
/external/guice/core/src/com/google/inject/internal/ |
D | InjectionRequestProcessor.java | 57 errors.merge(e.getErrorMessages()); in visit() 102 errorsForMember.merge(e.getErrorMessages()); in validate()
|
D | MembersInjectorStore.java | 95 errors.merge(e.getErrorMessages()); in createWithListeners()
|
D | Errors.java | 405 return ((ProvisionException) throwable).getErrorMessages(); in getMessagesFromThrowable() 407 return ((ConfigurationException) throwable).getErrorMessages(); in getMessagesFromThrowable() 409 return ((CreationException) throwable).getErrorMessages(); in getMessagesFromThrowable()
|
D | BindingBuilder.java | 179 for (Message message : e.getErrorMessages()) { in copyErrorsToBinder()
|
D | ConstructorBindingImpl.java | 104 throw errors.merge(e.getErrorMessages()).toException(); in create()
|
/external/guice/core/src/com/google/inject/ |
D | CreationException.java | 45 public Collection<Message> getErrorMessages() { in getErrorMessages() method in CreationException
|
D | ProvisionException.java | 55 public Collection<Message> getErrorMessages() { in getErrorMessages() method in ProvisionException
|
D | ConfigurationException.java | 55 public Collection<Message> getErrorMessages() { in getErrorMessages() method in ConfigurationException
|
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/ |
D | FactoryProvider2.java | 441 Collection<Message> messages = ce.getErrorMessages(); in isTypeNotSpecified() 511 errors.merge(e.getErrorMessages()); in findMatchingConstructorInjectionPoint() 773 if (e.getErrorMessages().size() == 1) { in invoke() 774 Message onlyError = getOnlyElement(e.getErrorMessages()); in invoke()
|
/external/guice/core/src/com/google/inject/spi/ |
D | InjectionPoint.java | 96 errors.merge(e.getErrorMessages()); in InjectionPoint() 121 errors.merge(e.getErrorMessages()); in forMember() 752 errors.merge(ignorable.getErrorMessages()); in getInjectionPoints()
|
/external/guice/core/test/com/google/inject/spi/ |
D | ModuleAnnotatedMethodScannerTest.java | 118 assertEquals(1, expected.getErrorMessages().size()); in testMoreThanOneClaimedAnnotationFails() 177 Message m = Iterables.getOnlyElement(expected.getErrorMessages());
|