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

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

public class NumberOfIssuesCondition
extends Object
implements SearchResultsCondition

A condition which asserts that the number of results returned by a search matches an exact number. This is done by matching the text above the issue table which states "Displaying a to b of x issues"; we utilise the particular DOM structure of the DIV containing the text.

Since:
v4.0

Constructor Summary
NumberOfIssuesCondition(TextAssertions assertions, Integer numberOfIssues)
           
 
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

NumberOfIssuesCondition

public NumberOfIssuesCondition(TextAssertions assertions,
                               Integer numberOfIssues)
Parameters:
assertions - text assertions
numberOfIssues - the exact number of results expected. Should be >= 0.
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-2012 Atlassian. All Rights Reserved.