Home
last modified time | relevance | path

Searched refs:hasMessage (Results 1 – 13 of 13) sorted by relevance

/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/nullables/
DNullabilityTest.java36 assertThat(npe).hasMessage("Cannot return null from a non-@Nullable @Provides method"); in testNullability_provides()
91 assertThat(npe).hasMessage("Cannot return null from a non-@Nullable component method"); in testNullability_components()
105 assertThat(npe).hasMessage("Cannot return null from a non-@Nullable " in validate()
/external/testng/src/test/java/test/factory/
DFactoryIntegrationTest.java22 …assertThat(e).hasMessage("\nCan't invoke public java.lang.Object[] test.factory.GitHub876Sample.cr… in testExceptionWithNonStaticFactoryMethod()
44 …assertThat(e).hasMessage("\ntest.factory.BadFactoryMethodReturnTypeSample.createInstances MUST ret… in testExceptionWithBadFactoryMethodReturnType()
/external/dagger2/compiler/src/it/functional-tests/src/test/java/test/subcomponent/repeat/
DRepeatedModuleTest.java60 .hasMessage( in repeatedModuleBuilderThrowsInSubcomponent()
77 .hasMessage( in repeatedModuleBuilderThrowsInGrandchildSubcomponent()
/external/junit/src/main/java/org/junit/rules/
DExpectedException.java9 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;
212 expect(hasMessage(matcher)); in expectMessage()
/external/mockito/src/test/java/org/mockitousage/constructor/
DCreatingMocksWithConstructorTest.java72 assertThat(e).hasMessage("Unable to create mock instance of type 'HasConstructor'"); in exception_message_when_constructor_not_found()
85 assertThat(e).hasMessage("Unable to create mock instance of type 'InnerClass'"); in mocking_inner_classes_with_wrong_outer_instance()
/external/dagger2/producers/src/test/java/dagger/producers/internal/
DProducersTest.java50 assertThat(getProducedException(producedFuture.get()).getCause()).hasMessage("monkey"); in createFutureProduced_failure()
95 assertThat(e.getCause()).hasMessage("monkey"); in createFutureSingletonSet_failure()
/external/junit/src/main/java/org/junit/internal/matchers/
DThrowableMessageMatcher.java34 public static <T extends Throwable> Matcher<T> hasMessage(final Matcher<String> matcher) { in hasMessage() method in ThrowableMessageMatcher
/external/junit-params/src/test/java/junitparams/
DRulesTest.java47 .hasMessage("The @Rule 'testRule' must be public."); in shouldProvideHelpfulExceptionMessageWhenRuleIsUsedImproperly()
/external/mockito/src/test/java/org/mockito/internal/stubbing/answers/
DCallsRealMethodsTest.java35 assertThat(throwable).hasMessage("real code"); in should_invoke_real_method()
DThrowsExceptionTest.java21 … assertThat(throwable).isInstanceOf(IllegalStateException.class).hasMessage("my dear throwable"); in should_raise_wanted_throwable()
/external/mockito/src/test/java/org/mockitoutil/
DSafeJUnitRule.java53 assertThrowable(t, expected).hasMessage(expectedMessage);
/external/dagger2/compiler/src/it/producers-functional-tests/src/test/java/producerstest/
DMultibindingTest.java71 assertThat(Iterables.getOnlyElement(failures).getCause()).hasMessage("monkey"); in setBindingOfProducedWithFailures()
/external/mockito/src/test/java/org/mockitousage/matchers/
DInvalidUseOfMatchersTest.java114 .hasMessage(null); in should_mention_matcher_when_misuse_detected()