test_class.file: matchers/src/test/java/org/cthul/matchers/exceptions/ExceptionMessageTest.java
test_class.identifier: ExceptionMessageTest
test_case.body: @Test
      public void test_mismatch_description_regex() {
          final Matcher<Throwable> hasValidMessage = messageContains("no value");
          final Throwable t = new RuntimeException("No value!");
          
          assertThat("Matching fails", hasValidMessage.matches(t), is(false));
          
          StringDescription desc = new StringDescription();
          hasValidMessage.describeMismatch(t, desc);
          assertThat(desc.toString(), is("message \"No value!\" did not contain /no value/"));
      }
test_case.class_method_signature: ExceptionMessageTest.test_mismatch_description_regex()
test_case.full_signature: @Test public void test_mismatch_description_regex()
test_case.identifier: test_mismatch_description_regex
test_case.invocations: messageContains assertThat matches is describeMismatch assertThat toString is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void test_mismatch_description_regex()
focal_class.declarator: messageMatcher
focal_class.modifier: private
focal_class.original_string: private Matcher<? super String> messageMatcher;
focal_class.type: Matcher<? super String>
focal_class.var_name: messageMatcher
focal_class.file: matchers/src/main/java/org/cthul/matchers/exceptions/ExceptionMessage.java
focal_class.identifier: ExceptionMessage
focal_class.class_method_signature: ExceptionMessage.ExceptionMessage(Matcher<? super String> messageMatcher)
focal_class.full_signature: public  ExceptionMessage(Matcher<? super String> messageMatcher)
focal_class.identifier: ExceptionMessage
focal_class.modifiers: public
focal_class.parameters: (Matcher<? super String> messageMatcher)
focal_class.signature:  ExceptionMessage(Matcher<? super String> messageMatcher)
focal_class.class_method_signature: ExceptionMessage.getDescriptionPrecedence()
focal_class.full_signature: @Override public int getDescriptionPrecedence()
focal_class.identifier: getDescriptionPrecedence
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getDescriptionPrecedence()
focal_class.class_method_signature: ExceptionMessage.matchesSafely(Throwable ex)
focal_class.full_signature: @Override protected boolean matchesSafely(Throwable ex)
focal_class.identifier: matchesSafely
focal_class.modifiers: @Override protected
focal_class.parameters: (Throwable ex)
focal_class.return: boolean
focal_class.signature: boolean matchesSafely(Throwable ex)
focal_class.class_method_signature: ExceptionMessage.describeTo(Description description)
focal_class.full_signature: @Override public void describeTo(Description description)
focal_class.identifier: describeTo
focal_class.modifiers: @Override public
focal_class.parameters: (Description description)
focal_class.return: void
focal_class.signature: void describeTo(Description description)
focal_class.class_method_signature: ExceptionMessage.matchResultSafely(I item)
focal_class.full_signature: @Override protected MatchResult<I> matchResultSafely(I item)
focal_class.identifier: matchResultSafely
focal_class.modifiers: @Override protected
focal_class.parameters: (I item)
focal_class.return: MatchResult<I>
focal_class.signature: MatchResult<I> matchResultSafely(I item)
focal_class.class_method_signature: ExceptionMessage.messageIs(String message)
focal_class.full_signature: @Factory public static ExceptionMessage messageIs(String message)
focal_class.identifier: messageIs
focal_class.modifiers: @Factory public static
focal_class.parameters: (String message)
focal_class.return: ExceptionMessage
focal_class.signature: ExceptionMessage messageIs(String message)
focal_class.class_method_signature: ExceptionMessage.messageContains(String regex)
focal_class.full_signature: @Factory public static ExceptionMessage messageContains(String regex)
focal_class.identifier: messageContains
focal_class.modifiers: @Factory public static
focal_class.parameters: (String regex)
focal_class.return: ExceptionMessage
focal_class.signature: ExceptionMessage messageContains(String regex)
focal_class.class_method_signature: ExceptionMessage.messageMatches(String regex)
focal_class.full_signature: @Factory public static ExceptionMessage messageMatches(String regex)
focal_class.identifier: messageMatches
focal_class.modifiers: @Factory public static
focal_class.parameters: (String regex)
focal_class.return: ExceptionMessage
focal_class.signature: ExceptionMessage messageMatches(String regex)
focal_class.class_method_signature: ExceptionMessage.messageContains(Pattern pattern)
focal_class.full_signature: @Factory public static ExceptionMessage messageContains(Pattern pattern)
focal_class.identifier: messageContains
focal_class.modifiers: @Factory public static
focal_class.parameters: (Pattern pattern)
focal_class.return: ExceptionMessage
focal_class.signature: ExceptionMessage messageContains(Pattern pattern)
focal_class.class_method_signature: ExceptionMessage.messageMatches(Pattern pattern)
focal_class.full_signature: @Factory public static ExceptionMessage messageMatches(Pattern pattern)
focal_class.identifier: messageMatches
focal_class.modifiers: @Factory public static
focal_class.parameters: (Pattern pattern)
focal_class.return: ExceptionMessage
focal_class.signature: ExceptionMessage messageMatches(Pattern pattern)
focal_class.class_method_signature: ExceptionMessage.message(Matcher<? super String> messageMatcher)
focal_class.full_signature: @Factory public static ExceptionMessage message(Matcher<? super String> messageMatcher)
focal_class.identifier: message
focal_class.modifiers: @Factory public static
focal_class.parameters: (Matcher<? super String> messageMatcher)
focal_class.return: ExceptionMessage
focal_class.signature: ExceptionMessage message(Matcher<? super String> messageMatcher)
focal_class.superclass: extends TypesafeNestedResultMatcher<Throwable>
focal_method.body: @Factory
      public static ExceptionMessage messageContains(String regex) {
          return new ExceptionMessage(new ContainsPattern(regex, false));
      }
focal_method.class_method_signature: ExceptionMessage.messageContains(String regex)
focal_method.full_signature: @Factory public static ExceptionMessage messageContains(String regex)
focal_method.identifier: messageContains
focal_method.modifiers: @Factory public static
focal_method.parameters: (String regex)
focal_method.return: ExceptionMessage
focal_method.signature: ExceptionMessage messageContains(String regex)