com.atlassian.jira.functest.matcher
Class DocumentMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<InputStream>
          extended by 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
DocumentMatcher()
           
 
Method Summary
protected abstract  boolean matchesDocument(Document document)
           
 boolean matchesSafely(InputStream inputStream)
           
 
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 Detail

DocumentMatcher

public DocumentMatcher()
Method Detail

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.