com.eviware.soapui.impl.wsdl.teststeps
Class RestTestRequest

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.model.support.AbstractAnimatableModelItem<com.eviware.soapui.config.ModelItemConfig>
          extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
              extended by com.eviware.soapui.impl.support.AbstractHttpRequest<com.eviware.soapui.config.RestRequestConfig>
                  extended by com.eviware.soapui.impl.rest.RestRequest
                      extended by com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest
All Implemented Interfaces:
RestRequestInterface, AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>, HttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>, AttachmentContainer, MutableAttachmentContainer, MutableTestPropertyHolder, JMSHeaderContainer, JMSPropertyContainer, HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>, RestTestRequestInterface, TestRequest, Request, ModelItem, PropertyExpansionContainer, TestPropertyHolder, Assertable, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener

public class RestTestRequest
extends RestRequest
implements RestTestRequestInterface


Nested Class Summary
protected static class RestTestRequest.TestRequestIconAnimator
           
 
Nested classes/interfaces inherited from class com.eviware.soapui.impl.rest.RestRequest
RestRequest.ParameterMessagePart, RestRequest.RestContentPart
 
Nested classes/interfaces inherited from class com.eviware.soapui.impl.support.AbstractHttpRequest
AbstractHttpRequest.RequestIconAnimator<T extends AbstractHttpRequest<?>>
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.Assertable
Assertable.AssertionStatus
 
Nested classes/interfaces inherited from interface com.eviware.soapui.impl.rest.RestRequestInterface
RestRequestInterface.RequestMethod
 
Field Summary
 
Fields inherited from interface com.eviware.soapui.impl.wsdl.teststeps.HttpTestRequestInterface
RESPONSE_PROPERTY, STATUS_PROPERTY
 
Fields inherited from interface com.eviware.soapui.impl.rest.RestRequestInterface
DEFAULT_MEDIATYPE, log, REST_XML_REQUEST
 
Fields inherited from interface com.eviware.soapui.impl.support.AbstractHttpRequestInterface
BIND_ADDRESS, DISABLE_MULTIPART_ATTACHMENTS, DUMP_FILE, FOLLOW_REDIRECTS, MAX_SIZE, REMOVE_EMPTY_CONTENT, REQUEST_HEADERS_PROPERTY, STRIP_WHITESPACES
 
Constructor Summary
RestTestRequest(RestMethod method, com.eviware.soapui.config.RestRequestConfig callConfig, RestTestRequestStep testStep, boolean forLoadTest)
           
 
Method Summary
 WsdlMessageAssertion addAssertion(java.lang.String assertionLabel)
           
 void addAssertionsListener(AssertionsListener listener)
           
 void assertResponse(SubmitContext context)
           
 TestAssertion cloneAssertion(TestAssertion source, java.lang.String name)
           
 java.lang.String getAssertableContent()
           
 TestAssertionRegistry.AssertableType getAssertableType()
           
 WsdlMessageAssertion getAssertionAt(int c)
           
 WsdlMessageAssertion getAssertionByName(java.lang.String name)
           
 int getAssertionCount()
           
 java.util.List<TestAssertion> getAssertionList()
           
 java.util.Map<java.lang.String,TestAssertion> getAssertions()
           
 Assertable.AssertionStatus getAssertionStatus()
           
 java.lang.String getDefaultAssertableContent()
           
 javax.swing.ImageIcon getIcon()
           
 RestService getInterface()
           
 ModelItem getModelItem()
          Returns ModelItem associated with this container
 RestResource getOperation()
           
 ModelItem getParent()
           
 RestResource getResource()
           
 java.lang.String getResponseContentAsString()
           
 java.lang.String getRestMethodName()
           
 java.lang.String getServiceName()
           
 WsdlTestCase getTestCase()
           
 RestTestRequestStep getTestStep()
           
 WsdlMessageAssertion importAssertion(WsdlMessageAssertion source, boolean overwrite, boolean createCopy)
           
protected  void initIcons()
           
 TestAssertion moveAssertion(int ix, int offset)
           
 void release()
           
 void removeAssertion(TestAssertion assertion)
           
 void removeAssertionsListener(AssertionsListener listener)
           
 void resolve(ResolveContext<?> context)
           
 void setPath(java.lang.String fullPath)
           
 void setResponse(HttpResponse response, SubmitContext context)
           
 void setRestMethod(RestMethod restMethod)
           
 void updateConfig(com.eviware.soapui.config.RestRequestConfig request)
          Called when a testrequest is moved in a testcase
 
Methods inherited from class com.eviware.soapui.impl.rest.RestRequest
addJMSHeaderExpansions, addProperty, addTestPropertyListener, getAccept, getAttachmentPart, getDefinedAttachmentParts, getJMSHeaderConfig, getJMSPropertiesConfig, getMediaType, getMethod, 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, setPostQueryString, setPropertyValue, submit, updateParams
 
Methods inherited from class com.eviware.soapui.impl.support.AbstractHttpRequest
addAttachmentsChangeListener, addSubmitListener, attachFile, beforeSave, copyAttachmentsTo, getAfterRequestInjection, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, getAttachmentsList, getBindAddress, getDomain, getDumpFile, getEncoding, getEndpoint, getIconAnimator, getMaxSize, getPassword, getRequestContent, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getTimeout, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isMultipartEnabled, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, removeAttachment, removeAttachmentsChangeListener, removeSubmitListener, setAfterRequestInjection, setBindAddress, setDomain, setDumpFile, setEncoding, setEndpoint, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setSslKeystore, setStripWhitespaces, setTimeout, setUsername
 
Methods inherited from class com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem
afterLoad, dependsOn, getConfig, getDescription, getId, getName, getSettings, getWsdlModelItemByName, setConfig, setDescription, setIcon, setName, setSettings
 
Methods inherited from class com.eviware.soapui.model.support.AbstractModelItem
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, getChildren, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, notifyPropertyChanged, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.eviware.soapui.impl.rest.RestRequestInterface
getAccept, getRepresentations, getRepresentations, getRepresentations, getResponseMediaTypes, getRestMethod, hasEndpoint, setAccept
 
Methods inherited from interface com.eviware.soapui.impl.support.http.HttpRequestInterface
getMediaType, getParams, getPath, getResponseContentAsXml, hasRequestBody, isPostQueryString, setMediaType, setMethod, setPostQueryString
 
Methods inherited from interface com.eviware.soapui.impl.support.AbstractHttpRequestInterface
beforeSave, copyAttachmentsTo, getAfterRequestInjection, 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
 
Methods inherited from interface com.eviware.soapui.impl.wsdl.MutableTestPropertyHolder
addProperty, moveProperty, removeProperty, renameProperty
 
Methods inherited from interface com.eviware.soapui.model.TestPropertyHolder
addTestPropertyListener, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyList, getPropertyNames, getPropertyValue, hasProperty, removeTestPropertyListener, setPropertyValue
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Constructor Detail

RestTestRequest

public RestTestRequest(RestMethod method,
                       com.eviware.soapui.config.RestRequestConfig callConfig,
                       RestTestRequestStep testStep,
                       boolean forLoadTest)
Method Detail

getParent

public ModelItem getParent()
Specified by:
getParent in interface ModelItem
Overrides:
getParent in class RestRequest

getTestCase

public WsdlTestCase getTestCase()
Specified by:
getTestCase in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>

initIcons

protected void initIcons()

getAssertionCount

public int getAssertionCount()
Specified by:
getAssertionCount in interface Assertable

getAssertionAt

public WsdlMessageAssertion getAssertionAt(int c)
Specified by:
getAssertionAt in interface Assertable

setResponse

public void setResponse(HttpResponse response,
                        SubmitContext context)
Specified by:
setResponse in interface RestRequestInterface
Specified by:
setResponse in interface AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>
Overrides:
setResponse in class AbstractHttpRequest<com.eviware.soapui.config.RestRequestConfig>

assertResponse

public void assertResponse(SubmitContext context)
Specified by:
assertResponse in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>

addAssertion

public WsdlMessageAssertion addAssertion(java.lang.String assertionLabel)
Specified by:
addAssertion in interface Assertable

removeAssertion

public void removeAssertion(TestAssertion assertion)
Specified by:
removeAssertion in interface Assertable

moveAssertion

public TestAssertion moveAssertion(int ix,
                                   int offset)
Specified by:
moveAssertion in interface Assertable

getAssertionStatus

public Assertable.AssertionStatus getAssertionStatus()
Specified by:
getAssertionStatus in interface Assertable

getIcon

public javax.swing.ImageIcon getIcon()
Specified by:
getIcon in interface AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>
Specified by:
getIcon in interface ModelItem
Overrides:
getIcon in class AbstractHttpRequest<com.eviware.soapui.config.RestRequestConfig>

addAssertionsListener

public void addAssertionsListener(AssertionsListener listener)
Specified by:
addAssertionsListener in interface Assertable

removeAssertionsListener

public void removeAssertionsListener(AssertionsListener listener)
Specified by:
removeAssertionsListener in interface Assertable

updateConfig

public void updateConfig(com.eviware.soapui.config.RestRequestConfig request)
Called when a testrequest is moved in a testcase

Specified by:
updateConfig in interface HttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>
Specified by:
updateConfig in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>
Overrides:
updateConfig in class RestRequest

release

public void release()
Specified by:
release in interface RestRequestInterface
Specified by:
release in interface AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>
Overrides:
release in class RestRequest

getAssertableContent

public java.lang.String getAssertableContent()
Specified by:
getAssertableContent in interface Assertable

getTestStep

public RestTestRequestStep getTestStep()
Specified by:
getTestStep in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>
Specified by:
getTestStep in interface RestTestRequestInterface
Specified by:
getTestStep in interface TestRequest

getInterface

public RestService getInterface()
Specified by:
getInterface in interface Assertable

getOperation

public RestResource getOperation()
Specified by:
getOperation in interface Request
Overrides:
getOperation in class RestRequest

getAssertableType

public TestAssertionRegistry.AssertableType getAssertableType()
Specified by:
getAssertableType in interface Assertable

cloneAssertion

public TestAssertion cloneAssertion(TestAssertion source,
                                    java.lang.String name)
Specified by:
cloneAssertion in interface Assertable

importAssertion

public WsdlMessageAssertion importAssertion(WsdlMessageAssertion source,
                                            boolean overwrite,
                                            boolean createCopy)
Specified by:
importAssertion in interface RestTestRequestInterface
Specified by:
importAssertion in interface TestRequest

getAssertionList

public java.util.List<TestAssertion> getAssertionList()
Specified by:
getAssertionList in interface Assertable

getAssertionByName

public WsdlMessageAssertion getAssertionByName(java.lang.String name)
Specified by:
getAssertionByName in interface Assertable

getModelItem

public ModelItem getModelItem()
Description copied from interface: AttachmentContainer
Returns ModelItem associated with this container

Specified by:
getModelItem in interface AttachmentContainer
Specified by:
getModelItem in interface TestPropertyHolder
Specified by:
getModelItem in interface Assertable
Overrides:
getModelItem in class RestRequest

getAssertions

public java.util.Map<java.lang.String,TestAssertion> getAssertions()
Specified by:
getAssertions in interface Assertable

getDefaultAssertableContent

public java.lang.String getDefaultAssertableContent()
Specified by:
getDefaultAssertableContent in interface Assertable

getResponseContentAsString

public java.lang.String getResponseContentAsString()
Specified by:
getResponseContentAsString in interface HttpTestRequestInterface<com.eviware.soapui.config.RestRequestConfig>

setPath

public void setPath(java.lang.String fullPath)
Specified by:
setPath in interface RestRequestInterface
Overrides:
setPath in class RestRequest

setRestMethod

public void setRestMethod(RestMethod restMethod)
Specified by:
setRestMethod in interface RestTestRequestInterface
Overrides:
setRestMethod in class RestRequest

getResource

public RestResource getResource()
Specified by:
getResource in interface RestRequestInterface
Overrides:
getResource in class RestRequest

getRestMethodName

public java.lang.String getRestMethodName()
Specified by:
getRestMethodName in interface RestTestRequestInterface

resolve

public void resolve(ResolveContext<?> context)
Specified by:
resolve in interface AbstractHttpRequestInterface<com.eviware.soapui.config.RestRequestConfig>
Specified by:
resolve in interface RestTestRequestInterface
Overrides:
resolve in class AbstractHttpRequest<com.eviware.soapui.config.RestRequestConfig>

getServiceName

public java.lang.String getServiceName()
Specified by:
getServiceName in interface RestTestRequestInterface


Copyright © 2005-2010 eviware.com. All Rights Reserved.