public class RestTestRequest extends RestRequest implements RestTestRequestInterface
Modifier and Type | Class and Description |
---|---|
protected static class |
RestTestRequest.TestRequestIconAnimator |
RestRequest.ParameterMessagePart, RestRequest.RestContentPart
AbstractHttpRequest.RequestIconAnimator<T extends AbstractHttpRequest<?>>
Assertable.AssertionStatus
RestRequestInterface.HttpMethod
BASIC_AUTH_PROFILE, CR_ESCAPE_SEQUENCE, SELECTED_AUTH_PROFILE_PROPERTY_NAME
RESPONSE_PROPERTY, STATUS_PROPERTY
DEFAULT_MEDIATYPE, log, REST_XML_REQUEST
BIND_ADDRESS, DISABLE_MULTIPART_ATTACHMENTS, DUMP_FILE, FOLLOW_REDIRECTS, MAX_SIZE, REMOVE_EMPTY_CONTENT, REQUEST_HEADERS_PROPERTY, STRIP_WHITESPACES
Constructor and Description |
---|
RestTestRequest(RestMethod method,
RestRequestConfig callConfig,
RestTestRequestStep testStep,
boolean forLoadTest) |
addJMSHeaderExpansions, addProperty, addTestPropertyListener, getAccept, getAttachmentPart, getDefinedAttachmentParts, getJMSHeaderConfig, getJMSPropertiesConfig, getMediaType, getMethod, getMultiValueDelimiter, getParams, getPath, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyExpansions, getPropertyList, getPropertyNames, getPropertyValue, getRepresentations, getRepresentations, getRepresentations, getRequestParts, getResponseContentAsXml, getResponseMediaTypes, getResponseParts, getRestMethod, hasEndpoint, hasProperty, hasRequestBody, initIconAnimator, isPostQueryString, moveProperty, propertyChange, removeProperty, removeTestPropertyListener, renameProperty, resetPropertyValues, setAccept, setMediaType, setMethod, setMultiValueDelimiter, setPostQueryString, setPropertyValue, submit, updateParams
addAttachmentsChangeListener, addBasicAuthenticationProfile, addExternalDependencies, addSubmitListener, attachBinaryData, attachFile, beforeSave, copyAttachmentsTo, getAfterRequestInjection, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, getAttachmentsList, getAuthType, getBasicAuthenticationProfiles, getBasicAuthType, getBindAddress, getDomain, getDumpFile, getEncoding, getEndpoint, getIconAnimator, getMaxSize, getPassword, getPreemptive, getRequestContent, getRequestHeaders, getResponse, getSelectedAuthProfile, getSslKeystore, getSubmitListeners, getTimeout, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isMultipartEnabled, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, removeAttachment, removeAttachmentsChangeListener, removeBasicAuthenticationProfile, removeSubmitListener, setAfterRequestInjection, setAttachmentAt, setBindAddress, setDomain, setDumpFile, setEncoding, setEndpoint, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPreemptive, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setRequestHeaders, setSelectedAuthProfileAndAuthType, setSslKeystore, setStripWhitespaces, setTimeout, setUsername
afterLoad, dependsOn, getConfig, getDescription, getExternalDependencies, getId, getName, getSettings, getWsdlModelItemById, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, getProject, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getResponse
getAccept, getRepresentations, getRepresentations, getRepresentations, getResponseMediaTypes, getRestMethod, hasEndpoint, setAccept
getMultiValueDelimiter, getParams, getPath, getResponseContentAsXml, hasRequestBody, isPostQueryString, setMethod, setPostQueryString
addExternalDependencies, beforeSave, copyAttachmentsTo, getAfterRequestInjection, getAuthType, getBindAddress, getDomain, getDumpFile, getIconAnimator, getMaxSize, getMethod, getPassword, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, setBindAddress, setDomain, setDumpFile, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setSslKeystore, setStripWhitespaces, setUsername
addProperty, moveProperty, removeProperty, renameProperty
addTestPropertyListener, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue
getMediaType, setMediaType
propertyChange
public RestTestRequest(RestMethod method, RestRequestConfig callConfig, RestTestRequestStep testStep, boolean forLoadTest)
public ModelItem getParent()
getParent
in interface ModelItem
getParent
in class RestRequest
public WsdlTestCase getTestCase()
getTestCase
in interface HttpTestRequestInterface<RestRequestConfig>
protected void initIcons()
public int getAssertionCount()
getAssertionCount
in interface Assertable
public WsdlMessageAssertion getAssertionAt(int c)
getAssertionAt
in interface Assertable
public void setResponse(HttpResponse response, SubmitContext context)
setResponse
in interface RestRequestInterface
setResponse
in interface AbstractHttpRequestInterface<RestRequestConfig>
setResponse
in class AbstractHttpRequest<RestRequestConfig>
public void assertResponse(SubmitContext context)
assertResponse
in interface HttpTestRequestInterface<RestRequestConfig>
public WsdlMessageAssertion addAssertion(String assertionLabel)
addAssertion
in interface Assertable
public void removeAssertion(TestAssertion assertion)
removeAssertion
in interface Assertable
public TestAssertion moveAssertion(int ix, int offset)
moveAssertion
in interface Assertable
public Assertable.AssertionStatus getAssertionStatus()
getAssertionStatus
in interface Assertable
public ImageIcon getIcon()
getIcon
in interface AbstractHttpRequestInterface<RestRequestConfig>
getIcon
in interface ModelItem
getIcon
in class AbstractHttpRequest<RestRequestConfig>
public void addAssertionsListener(AssertionsListener listener)
addAssertionsListener
in interface Assertable
public void removeAssertionsListener(AssertionsListener listener)
removeAssertionsListener
in interface Assertable
public void updateConfig(RestRequestConfig request)
updateConfig
in interface HttpRequestInterface<RestRequestConfig>
updateConfig
in interface HttpTestRequestInterface<RestRequestConfig>
updateConfig
in class RestRequest
public void release()
release
in interface RestRequestInterface
release
in interface AbstractHttpRequestInterface<RestRequestConfig>
release
in interface Releasable
release
in class RestRequest
public String getAssertableContentAsXml()
getAssertableContentAsXml
in interface Assertable
public String getAssertableContent()
getAssertableContent
in interface Assertable
public RestTestRequestStep getTestStep()
getTestStep
in interface HttpTestRequestInterface<RestRequestConfig>
getTestStep
in interface RestTestRequestInterface
getTestStep
in interface TestRequest
getTestStep
in interface Assertable
public RestService getInterface()
getInterface
in interface Assertable
public RestResource getOperation()
getOperation
in interface Request
getOperation
in class RestRequest
public TestAssertionRegistry.AssertableType getAssertableType()
getAssertableType
in interface Assertable
public TestAssertion cloneAssertion(TestAssertion source, String name)
cloneAssertion
in interface Assertable
public WsdlMessageAssertion importAssertion(WsdlMessageAssertion source, boolean overwrite, boolean createCopy, String newName)
importAssertion
in interface RestTestRequestInterface
importAssertion
in interface TestRequest
public List<TestAssertion> getAssertionList()
getAssertionList
in interface Assertable
public WsdlMessageAssertion getAssertionByName(String name)
getAssertionByName
in interface Assertable
public ModelItem getModelItem()
AttachmentContainer
getModelItem
in interface AttachmentContainer
getModelItem
in interface TestPropertyHolder
getModelItem
in interface Assertable
getModelItem
in class RestRequest
public Map<String,TestAssertion> getAssertions()
getAssertions
in interface Assertable
public String getDefaultAssertableContent()
getDefaultAssertableContent
in interface Assertable
public String getResponseContentAsString()
getResponseContentAsString
in interface HttpTestRequestInterface<RestRequestConfig>
public void setPath(String fullPath)
setPath
in interface RestRequestInterface
setPath
in class RestRequest
public void setRestMethod(RestMethod restMethod)
setRestMethod
in interface RestTestRequestInterface
setRestMethod
in class RestRequest
public RestResource getResource()
getResource
in interface RestRequestInterface
getResource
in class RestRequest
public String getRestMethodName()
getRestMethodName
in interface RestTestRequestInterface
public void resolve(ResolveContext<?> context)
resolve
in interface AbstractHttpRequestInterface<RestRequestConfig>
resolve
in interface RestTestRequestInterface
resolve
in class AbstractHttpRequest<RestRequestConfig>
public String getServiceName()
getServiceName
in interface RestTestRequestInterface
public boolean isDiscardResponse()
isDiscardResponse
in interface TestRequest
public void setDiscardResponse(boolean discardResponse)
Copyright © 2019. All Rights Reserved.