Class IssueNavigatorAssertionsImpl
java.lang.Object
com.atlassian.jira.functest.framework.assertions.IssueNavigatorAssertionsImpl
- All Implemented Interfaces:
IssueNavigatorAssertions
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.assertions.IssueNavigatorAssertions
IssueNavigatorAssertions.FilterFormParam
-
Constructor Summary
ConstructorsConstructorDescriptionIssueNavigatorAssertionsImpl
(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
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
Assert that there were no errors with submitted JQL queryvoid
Assert that the navigator displays the correct description.void
assertSearchResults
(SearchResultsCondition... conditions) Assert properties of the result set displayed in the Issue Navigator.void
assertSearchResults
(Iterable<? extends SearchResultsCondition> conditions) Assert properties of the result set displayed in the Issue Navigator.void
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.
-
Constructor Details
-
IssueNavigatorAssertionsImpl
@Inject public IssueNavigatorAssertionsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
-
-
Method Details
-
assertAdvancedSearch
Description copied from interface:IssueNavigatorAssertions
Assert that the advanced navigator is a JQL expression that contains the passed snippets.- Specified by:
assertAdvancedSearch
in interfaceIssueNavigatorAssertions
- 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.
-
assertSearchResults
Description copied from interface:IssueNavigatorAssertions
Assert properties of the result set displayed in the Issue Navigator.- Specified by:
assertSearchResults
in interfaceIssueNavigatorAssertions
- 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 interfaceIssueNavigatorAssertions
-
assertExactIssuesInResults
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 forIssueNavigatorAssertions.assertSearchResults(Iterable)
using theContainsIssueKeysCondition
and theNumberOfIssuesCondition
.- Specified by:
assertExactIssuesInResults
in interfaceIssueNavigatorAssertions
- Parameters:
keys
- the keys of the issues that must appear on navigator. Every key must be entered.
-
assertSearchResultsContain
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 interfaceIssueNavigatorAssertions
- Parameters:
keys
- The keys of the issues that must appear in the issue navigator results. Must not be null or empty.
-
assertSearchResultsDoNotContain
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 interfaceIssueNavigatorAssertions
- Parameters:
keys
- The keys of the issues that must not appear in the issue navigator results. Must not be null or empty.
-
assertJqlErrors
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 interfaceIssueNavigatorAssertions
- Parameters:
errorMessages
- the error messages that should appear.
-
assertJqlWarnings
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 interfaceIssueNavigatorAssertions
- 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 interfaceIssueNavigatorAssertions
-
assertNoJqlErrors
public void assertNoJqlErrors()Description copied from interface:IssueNavigatorAssertions
Assert that there were no errors with submitted JQL query- Specified by:
assertNoJqlErrors
in interfaceIssueNavigatorAssertions