Home
last modified time | relevance | path

Searched refs:getErrorMessages (Results 1 – 25 of 33) sorted by relevance

12

/external/guice/core/test/com/google/inject/
DProvisionExceptionsTest.java51 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()
DJitBindingsTest.java172 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 …]
DRequireAtInjectOnConstructorsTest.java40 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()
DProvisionListenerTest.java62 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()
DImplicitBindingTest.java163 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()
DPrivateModuleTest.java464 assertEquals(1, expected.getErrorMessages().size()); in testParentBindsSomethingInPrivate()
484 assertEquals(1, expected.getErrorMessages().size()); in testParentBindingToPrivateLinkedJitBinding()
503 assertEquals(1, expected.getErrorMessages().size()); in testParentBindingToPrivateJitBinding()
DBinderTest.java102 assertEquals(4, e.getErrorMessages().size()); in testMissingBindings()
136 assertEquals(1, e.getErrorMessages().size()); in testMissingDependency()
441 assertSame(message, Iterables.getOnlyElement(expected.getErrorMessages())); in testUserReportedError()
DParentInjectorTest.java76 assertContains(Iterables.getOnlyElement(ce.getErrorMessages()).getMessage(), in testChildCannotBindToAParentJitBinding()
DInjectorTest.java227 assertEquals(1, ce.getErrorMessages().size());
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/
DThrowingProviderTest.java328 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 …]
DCheckedProviderTest.java444 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/
DFactoryModuleBuilderTest.java71 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/
DProvidesIntoTest.java225 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()
DOptionalBinderTest.java142 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/
DInjectionRequestProcessor.java57 errors.merge(e.getErrorMessages()); in visit()
102 errorsForMember.merge(e.getErrorMessages()); in validate()
DMembersInjectorStore.java95 errors.merge(e.getErrorMessages()); in createWithListeners()
DErrors.java405 return ((ProvisionException) throwable).getErrorMessages(); in getMessagesFromThrowable()
407 return ((ConfigurationException) throwable).getErrorMessages(); in getMessagesFromThrowable()
409 return ((CreationException) throwable).getErrorMessages(); in getMessagesFromThrowable()
DBindingBuilder.java179 for (Message message : e.getErrorMessages()) { in copyErrorsToBinder()
DConstructorBindingImpl.java104 throw errors.merge(e.getErrorMessages()).toException(); in create()
/external/guice/core/src/com/google/inject/
DCreationException.java45 public Collection<Message> getErrorMessages() { in getErrorMessages() method in CreationException
DProvisionException.java55 public Collection<Message> getErrorMessages() { in getErrorMessages() method in ProvisionException
DConfigurationException.java55 public Collection<Message> getErrorMessages() { in getErrorMessages() method in ConfigurationException
/external/guice/extensions/assistedinject/src/com/google/inject/assistedinject/
DFactoryProvider2.java441 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/
DInjectionPoint.java96 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/
DModuleAnnotatedMethodScannerTest.java118 assertEquals(1, expected.getErrorMessages().size()); in testMoreThanOneClaimedAnnotationFails()
177 Message m = Iterables.getOnlyElement(expected.getErrorMessages());

12