Class DocumentMatcher

java.lang.Object
org.hamcrest.BaseMatcher<InputStream>
org.hamcrest.TypeSafeMatcher<InputStream>
com.atlassian.jira.functest.matcher.DocumentMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<InputStream>, org.hamcrest.SelfDescribing
Direct Known Subclasses:
BuildNumberMatcher, ConditionClassMatcher

public abstract class DocumentMatcher extends org.hamcrest.TypeSafeMatcher<InputStream>
Template class for matchers that work on DOM documents.
Since:
v5.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract boolean
     
    final boolean
     

    Methods inherited from class org.hamcrest.TypeSafeMatcher

    describeMismatch, describeMismatchSafely, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.hamcrest.SelfDescribing

    describeTo
  • Constructor Details

    • DocumentMatcher

      public DocumentMatcher()
  • Method Details

    • matchesSafely

      public final boolean matchesSafely(InputStream inputStream)
      Specified by:
      matchesSafely in class org.hamcrest.TypeSafeMatcher<InputStream>
    • matchesDocument

      protected abstract boolean matchesDocument(@Nullable Document document) throws Exception
      Throws:
      Exception