com.atlassian.jira.functest.matcher
Class ConditionClassMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<InputStream>
          extended by com.atlassian.jira.functest.matcher.DocumentMatcher
              extended by com.atlassian.jira.functest.matcher.ConditionClassMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<InputStream>, org.hamcrest.SelfDescribing

public class ConditionClassMatcher
extends DocumentMatcher

Matches workflow XML files that have conditions with the given class name in them.

Since:
v5.0

Constructor Summary
ConditionClassMatcher(String className)
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
protected  boolean matchesDocument(Document document)
           
static ConditionClassMatcher usesConditionClass(String className)
           
 
Methods inherited from class com.atlassian.jira.functest.matcher.DocumentMatcher
matchesSafely
 
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
 

Constructor Detail

ConditionClassMatcher

public ConditionClassMatcher(String className)
Method Detail

usesConditionClass

public static ConditionClassMatcher usesConditionClass(String className)

matchesDocument

protected boolean matchesDocument(@Nullable
                                  Document document)
                           throws Exception
Specified by:
matchesDocument in class DocumentMatcher
Throws:
Exception

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2002-2013 Atlassian. All Rights Reserved.