com.atlassian.jira.functest.framework.assertions
Class IssueNavigatorAssertionsImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.AbstractNavigationUtil
          extended by com.atlassian.jira.functest.framework.assertions.IssueNavigatorAssertionsImpl
All Implemented Interfaces:
IssueNavigatorAssertions, FuncTestLogger

public class IssueNavigatorAssertionsImpl
extends AbstractNavigationUtil
implements IssueNavigatorAssertions


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.assertions.IssueNavigatorAssertions
IssueNavigatorAssertions.FilterFormParam
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
IssueNavigatorAssertionsImpl(net.sourceforge.jwebunit.WebTester tester, com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
           
 
Method Summary
 void assertAdvancedSearch(net.sourceforge.jwebunit.WebTester tester, String... values)
          Assert that the advanced navigator is a JQL expression that contains the passed snippets.
 void assertExactIssuesInResults(String... keys)
          Asserts that the passed issues are displayed on the issue navigator.
 void assertIssueNavigatorDisplaying(Locator locator, String from, String to, String of)
          Assert that the issue navigator is displaying with bug from, to and totalNumber (of)
 void assertJqlErrors(String... errorMessages)
          Assert that the passed errors appears on the advanced issue navigator.
 void assertJqlFitsInFilterForm(String jqlQuery, IssueNavigatorAssertions.FilterFormParam... formParams)
          Executes a JQL query search and asserts that it fits in the simple filter form, and that the specified params are present and set.
 void assertJqlTooComplex()
          Assert that the JQL query was too complex to fit in simple mode.
 void assertJqlWarnings(String... warningMessages)
          Assert that the passed warnings appears on the advanced issue navigator.
 void assertNoJqlErrors()
          Assert that there were no errors with submitted JQL query
 void assertSearchInfo(SharedEntityInfo info)
          Assert that the navigator displays the correct description.
 void assertSearchResults(Iterable<? extends SearchResultsCondition> conditions)
          Assert properties of the result set displayed in the Issue Navigator.
 void assertSearchResultsAreEmpty()
          Asserts that current issue navigator search results are empty.
 void assertSearchResultsContain(String... keys)
          Assert that the current results displayed in the issue navigator contain a list of issues in the specified order.
 void assertSearchResultsDoNotContain(String... keys)
          Assert that the current results displayed in the issue navigator do not contain the specified issues.
 void assertSimpleSearch(NavigatorSearch search, net.sourceforge.jwebunit.WebTester tester)
          Assert that the navigator is currently configured like the passed search.
protected  TextAssertions getTextAssertions()
           
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractNavigationUtil
getNavigation
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueNavigatorAssertionsImpl

public IssueNavigatorAssertionsImpl(net.sourceforge.jwebunit.WebTester tester,
                                    com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
Method Detail

assertSimpleSearch

public void assertSimpleSearch(NavigatorSearch search,
                               net.sourceforge.jwebunit.WebTester tester)
Description copied from interface: IssueNavigatorAssertions
Assert that the navigator is currently configured like the passed search.

Specified by:
assertSimpleSearch in interface IssueNavigatorAssertions
Parameters:
search - the passed search.
tester - the web tester to test. It should be pointing to the configure navigator screen.

assertAdvancedSearch

public void assertAdvancedSearch(net.sourceforge.jwebunit.WebTester tester,
                                 String... values)
Description copied from interface: IssueNavigatorAssertions
Assert that the advanced navigator is a JQL expression that contains the passed snippets.

Specified by:
assertAdvancedSearch in interface IssueNavigatorAssertions
Parameters:
tester - the web tester to test. Is should be pointing to the configure advanced screen.
values - the JQL snippets that we try to find.

assertSearchInfo

public void assertSearchInfo(SharedEntityInfo info)
Description copied from interface: IssueNavigatorAssertions
Assert that the navigator displays the correct description.

Specified by:
assertSearchInfo in interface IssueNavigatorAssertions
Parameters:
info - the filter state to assert.

assertSearchResults

public void assertSearchResults(Iterable<? extends SearchResultsCondition> conditions)
Description copied from interface: IssueNavigatorAssertions
Assert properties of the result set displayed in the Issue Navigator.

Specified by:
assertSearchResults in interface IssueNavigatorAssertions
Parameters:
conditions - the conditions to be met. All must be satisfied.

assertSearchResultsAreEmpty

public void assertSearchResultsAreEmpty()
Description copied from interface: IssueNavigatorAssertions
Asserts that current issue navigator search results are empty.

Specified by:
assertSearchResultsAreEmpty in interface IssueNavigatorAssertions

assertExactIssuesInResults

public void assertExactIssuesInResults(String... keys)
Description copied from interface: IssueNavigatorAssertions
Asserts that the passed issues are displayed on the issue navigator. This method requires that every key be listed or the assertion will fail. Its a shortcut for IssueNavigatorAssertions.assertSearchResults(Iterable) using the ContainsIssueKeysCondition and the NumberOfIssuesCondition.

Specified by:
assertExactIssuesInResults in interface IssueNavigatorAssertions
Parameters:
keys - the keys of the issues that must appear on navigator. Every key must be entered.

assertSearchResultsContain

public void assertSearchResultsContain(String... keys)
Description copied from interface: IssueNavigatorAssertions
Assert that the current results displayed in the issue navigator contain a list of issues in the specified order.

Specified by:
assertSearchResultsContain in interface IssueNavigatorAssertions
Parameters:
keys - The keys of the issues that must appear in the issue navigator results. Must not be null or empty.

assertSearchResultsDoNotContain

public void assertSearchResultsDoNotContain(String... keys)
Description copied from interface: IssueNavigatorAssertions
Assert that the current results displayed in the issue navigator do not contain the specified issues.

Specified by:
assertSearchResultsDoNotContain in interface IssueNavigatorAssertions
Parameters:
keys - The keys of the issues that must not appear in the issue navigator results. Must not be null or empty.

assertJqlErrors

public void assertJqlErrors(String... errorMessages)
Description copied from interface: IssueNavigatorAssertions
Assert that the passed errors appears on the advanced issue navigator. Only works for the the advanced view.

Specified by:
assertJqlErrors in interface IssueNavigatorAssertions
Parameters:
errorMessages - the error messages that should appear.

assertJqlWarnings

public void assertJqlWarnings(String... warningMessages)
Description copied from interface: IssueNavigatorAssertions
Assert that the passed warnings appears on the advanced issue navigator. Only works for the the advanced view.

Specified by:
assertJqlWarnings in interface IssueNavigatorAssertions
Parameters:
warningMessages - the warning messages that should appear.

assertJqlTooComplex

public void assertJqlTooComplex()
Description copied from interface: IssueNavigatorAssertions
Assert that the JQL query was too complex to fit in simple mode.

Specified by:
assertJqlTooComplex in interface IssueNavigatorAssertions

assertNoJqlErrors

public void assertNoJqlErrors()
Description copied from interface: IssueNavigatorAssertions
Assert that there were no errors with submitted JQL query

Specified by:
assertNoJqlErrors in interface IssueNavigatorAssertions

assertJqlFitsInFilterForm

public void assertJqlFitsInFilterForm(String jqlQuery,
                                      IssueNavigatorAssertions.FilterFormParam... formParams)
Description copied from interface: IssueNavigatorAssertions
Executes a JQL query search and asserts that it fits in the simple filter form, and that the specified params are present and set.

Specified by:
assertJqlFitsInFilterForm in interface IssueNavigatorAssertions
Parameters:
jqlQuery - the query to execute
formParams - the parameters of the form and their values that should be selected

assertIssueNavigatorDisplaying

public void assertIssueNavigatorDisplaying(Locator locator,
                                           String from,
                                           String to,
                                           String of)
Description copied from interface: IssueNavigatorAssertions
Assert that the issue navigator is displaying with bug from, to and totalNumber (of)

Specified by:
assertIssueNavigatorDisplaying in interface IssueNavigatorAssertions

getTextAssertions

protected TextAssertions getTextAssertions()


Copyright © 2002-2012 Atlassian. All Rights Reserved.