Searched refs:hasMessage (Results 1 – 13 of 13) sorted by relevance
36 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()
22 …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()
60 .hasMessage( in repeatedModuleBuilderThrowsInSubcomponent()77 .hasMessage( in repeatedModuleBuilderThrowsInGrandchildSubcomponent()
9 import static org.junit.internal.matchers.ThrowableMessageMatcher.hasMessage;212 expect(hasMessage(matcher)); in expectMessage()
72 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()
50 assertThat(getProducedException(producedFuture.get()).getCause()).hasMessage("monkey"); in createFutureProduced_failure()95 assertThat(e.getCause()).hasMessage("monkey"); in createFutureSingletonSet_failure()
34 public static <T extends Throwable> Matcher<T> hasMessage(final Matcher<String> matcher) { in hasMessage() method in ThrowableMessageMatcher
47 .hasMessage("The @Rule 'testRule' must be public."); in shouldProvideHelpfulExceptionMessageWhenRuleIsUsedImproperly()
35 assertThat(throwable).hasMessage("real code"); in should_invoke_real_method()
21 … assertThat(throwable).isInstanceOf(IllegalStateException.class).hasMessage("my dear throwable"); in should_raise_wanted_throwable()
53 assertThrowable(t, expected).hasMessage(expectedMessage);
71 assertThat(Iterables.getOnlyElement(failures).getCause()).hasMessage("monkey"); in setBindingOfProducedWithFailures()
114 .hasMessage(null); in should_mention_matcher_when_misuse_detected()