com.atlassian.jira.functest.framework.navigator
Class ContainsIssueKeysCondition

java.lang.Object
  extended by com.atlassian.jira.functest.framework.navigator.ContainsIssueKeysCondition
All Implemented Interfaces:
SearchResultsCondition

public class ContainsIssueKeysCondition
extends Object
implements SearchResultsCondition

A condition which asserts that the table containing search results specifies the issue keys in the correct order. Note: the current implementation is pretty loose - if issue keys appear in other parts of the table besides the issue key column, this might affect the results.

Since:
v4.0

Constructor Summary
ContainsIssueKeysCondition(TextAssertions assertions, String... issueKeys)
           
 
Method Summary
 void assertCondition(net.sourceforge.jwebunit.WebTester tester)
          Executes assertions for this condition on the search results by inspecting the state of the latest response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainsIssueKeysCondition

public ContainsIssueKeysCondition(TextAssertions assertions,
                                  String... issueKeys)
Parameters:
assertions - text assertions
issueKeys - the issue keys that should be present, in the specified order. You probably want to specify at least one issue.
Method Detail

assertCondition

public void assertCondition(net.sourceforge.jwebunit.WebTester tester)
Description copied from interface: SearchResultsCondition
Executes assertions for this condition on the search results by inspecting the state of the latest response. It is assumed that the search has already been executed, and we are currently on the page which should contain the search results.

Specified by:
assertCondition in interface SearchResultsCondition
Parameters:
tester - the web tester


Copyright © 2002-2013 Atlassian. All Rights Reserved.