com.atlassian.jira.functest.matcher
Class LinkedIssuesMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue>
          extended by com.atlassian.jira.functest.matcher.LinkedIssuesMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue>, org.hamcrest.SelfDescribing

public class LinkedIssuesMatcher
extends org.hamcrest.TypeSafeMatcher<com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue>

Used to test whether an issue is linked to another.

Since:
v5.0

Constructor Summary
LinkedIssuesMatcher(String expectedIssueKey, String expectedLinkTypeName, boolean outward)
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
static org.hamcrest.Matcher<com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue> hasLinkWithInwardIssue(String issueKey, String linkTypeName)
           
static org.hamcrest.Matcher<com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue> hasLinkWithOutwardIssue(String issueKey, String linkTypeName)
           
 boolean matchesSafely(com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue issue)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
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

LinkedIssuesMatcher

public LinkedIssuesMatcher(String expectedIssueKey,
                           String expectedLinkTypeName,
                           boolean outward)
Method Detail

hasLinkWithInwardIssue

public static org.hamcrest.Matcher<com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue> hasLinkWithInwardIssue(String issueKey,
                                                                                                                                String linkTypeName)

hasLinkWithOutwardIssue

public static org.hamcrest.Matcher<com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue> hasLinkWithOutwardIssue(String issueKey,
                                                                                                                                 String linkTypeName)

matchesSafely

public boolean matchesSafely(com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue issue)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.Issue>

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2002-2012 Atlassian. All Rights Reserved.