public class
SearchTestUtils
extends Object
Utility methods to test that indexed items are served correctly.
Public Constructor Summary
SearchTestUtils(SearchHelper searchHelper)
|
Public Method Summary
static SearchHelper |
getSearchHelper(String[] authInfo, String applicationId, Optional<String> rootUrl)
Utility method to return SearchHelper object.
|
void |
waitUntilItemNotServed(String itemId, String query)
|
void |
waitUntilItemServed(String itemId, String query)
|
Inherited Method Summary
Public Constructors
Public Methods
public static SearchHelper getSearchHelper (String[] authInfo, String applicationId, Optional<String> rootUrl)
Utility method to return SearchHelper object.
Parameters
authInfo | string array containing userEmail of the user to client secrets file, credentialsDirectory path containing the StoredCredential file and clientSecrets path to the client secrets JSON file |
---|---|
applicationId | Id of the serving application |
rootUrl | URL of the Indexing API |
Throws
IOException | |
---|---|
GeneralSecurityException |
public void waitUntilItemNotServed (String itemId, String query)
Parameters
itemId | |
---|---|
query |
Throws
IOException |
---|
public void waitUntilItemServed (String itemId, String query)
Parameters
itemId | |
---|---|
query |
Throws
IOException |
---|