public class Indexing extends Object
Constructor and Description |
---|
Indexing(Navigation navigation,
net.sourceforge.jwebunit.WebTester tester,
HtmlPage htmlPage,
com.atlassian.jira.testkit.client.log.FuncTestLogger logger) |
Modifier and Type | Method and Description |
---|---|
void |
assertIndexContainsItem(String xpath,
String issueKey) |
void |
assertIndexedFieldCorrect(String path,
Map<String,String> expectedItemNodes,
Map<String,String> unexpectedItemNodes,
String issueKey)
Check that certain fields have been indexed correctly.
|
void |
assertIndexNotContainsItem(String xpath,
String issueKey) |
@Inject public Indexing(Navigation navigation, net.sourceforge.jwebunit.WebTester tester, HtmlPage htmlPage, com.atlassian.jira.testkit.client.log.FuncTestLogger logger)
public void assertIndexedFieldCorrect(String path, Map<String,String> expectedItemNodes, Map<String,String> unexpectedItemNodes, String issueKey)
path
- xpath expression of the base node we are checking. Eg: "//item"expectedItemNodes
- Map containing key (xpath expression starting from path) : value (the expected value).
For example: "description" : "some description". You can pass null
instead of empty map.unexpectedItemNodes
- List of nodes from path that are *not* expected to be present. For example, if the
//item/[environment = "some environment"] should NOT be found, then the map would be: "environment" : "some
environment". You can pass null
instead of empty map.issueKey
- issue key of item we are checking. Eg: "HSP-1"Copyright © 2002-2019 Atlassian. All Rights Reserved.