public abstract class AbstractWebHookTest extends BaseJiraFuncTest
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractWebHookTest.WebHookResponseSupplier |
Modifier and Type | Field and Description |
---|---|
protected AbstractWebHookTest.WebHookResponseSupplier |
receivedByPersistentListener |
protected HttpResponseTester |
responseTester |
protected VersionControl |
versionControl |
assertions, backdoor, environmentData, initClass, navigation, tester, testRule
Constructor and Description |
---|
AbstractWebHookTest() |
Modifier and Type | Method and Description |
---|---|
void |
addToCleaunpList(HttpResponseTester tester) |
protected org.json.JSONObject |
getUrlParametersOfReceivedWebHook(String webhookPath)
This method returns a map of URL paramters supplied to the webhook listener.
|
protected WebHookResponseData |
getWebHookResponse() |
protected WebHookResponseData |
getWebHookResponseFromReferencePlugin(String webHookId) |
protected String |
getWebHookResponseFromTestServlet(String webhookId) |
protected com.google.common.base.Supplier<String> |
receivedByModuleDescriptorListener(String webhookPath) |
protected void |
registerWebHook(String webHook) |
protected void |
setUpTest() |
void |
stopHttpResponseTester() |
getAssertions, getBackdoor, getEnvironmentData, getTester
protected HttpResponseTester responseTester
protected VersionControl versionControl
protected final AbstractWebHookTest.WebHookResponseSupplier receivedByPersistentListener
protected final com.google.common.base.Supplier<String> receivedByModuleDescriptorListener(String webhookPath)
protected void setUpTest()
protected WebHookResponseData getWebHookResponse()
protected String getWebHookResponseFromTestServlet(String webhookId)
protected WebHookResponseData getWebHookResponseFromReferencePlugin(String webHookId)
protected org.json.JSONObject getUrlParametersOfReceivedWebHook(String webhookPath) throws org.json.JSONException
It returns a JSON instead of a map so that we can leverage powerful Matchers.
org.json.JSONException
public void addToCleaunpList(HttpResponseTester tester)
public void stopHttpResponseTester()
protected void registerWebHook(String webHook)
Copyright © 2002-2017 Atlassian. All Rights Reserved.