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

java.lang.Object
  extended by com.eviware.soapui.model.support.AbstractModelItem
      extended by com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem<T>
          extended by com.eviware.soapui.impl.support.AbstractHttpRequest<com.eviware.soapui.config.RestMethodConfig>
              extended by com.eviware.soapui.impl.rest.RestRequest
                  extended by com.eviware.soapui.impl.wsdl.teststeps.RestTestRequest
All Implemented Interfaces:
AttachmentContainer, MutableAttachmentContainer, MutableTestPropertyHolder, TestRequest, Request, ModelItem, PropertyExpansionContainer, TestPropertyHolder, Assertable, PropertyChangeNotifier, java.beans.PropertyChangeListener, java.util.EventListener

public class RestTestRequest
extends RestRequest
implements Assertable, TestRequest


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<?>>, AbstractHttpRequest.RequestMethod
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.testsuite.Assertable
Assertable.AssertionStatus
 
Nested classes/interfaces inherited from interface com.eviware.soapui.model.iface.Request
Request.SubmitException
 
Field Summary
static java.lang.String RESPONSE_PROPERTY
           
static java.lang.String STATUS_PROPERTY
           
 
Fields inherited from class com.eviware.soapui.impl.rest.RestRequest
DEFAULT_MEDIATYPE, log, REST_XML_REQUEST, REST_XML_RESPONSE
 
Fields inherited from class com.eviware.soapui.impl.support.AbstractHttpRequest
BIND_ADDRESS, DISABLE_MULTIPART_ATTACHMENTS, DUMP_FILE, FOLLOW_REDIRECTS, MAX_SIZE, REMOVE_EMPTY_CONTENT, REQUEST_HEADERS_PROPERTY, STRIP_WHITESPACES
 
Fields inherited from interface com.eviware.soapui.model.iface.Request
ENCODING_PROPERTY, ENDPOINT_PROPERTY, REQUEST_PROPERTY
 
Fields inherited from interface com.eviware.soapui.model.ModelItem
DESCRIPTION_PROPERTY, ICON_PROPERTY, LABEL_PROPERTY, NAME_PROPERTY
 
Fields inherited from interface com.eviware.soapui.impl.wsdl.AttachmentContainer
ATTACHMENTS_PROPERTY
 
Constructor Summary
RestTestRequest(RestResource resource, com.eviware.soapui.config.RestMethodConfig callConfig, HttpTestRequestStep 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 getServiceName()
           
 WsdlTestCase getTestCase()
           
 HttpTestRequestStep getTestStep()
           
 WsdlMessageAssertion importAssertion(WsdlMessageAssertion source, boolean overwrite, boolean createCopy)
           
protected  void initIcons()
           
 void release()
           
 void removeAssertion(TestAssertion assertion)
           
 void removeAssertionsListener(AssertionsListener listener)
           
 void resolve(ResolveContext context)
           
 void setPath(java.lang.String fullPath)
           
 void setResource(RestResource restResource)
           
 void setResponse(HttpResponse response, SubmitContext context)
           
 void updateConfig(com.eviware.soapui.config.RestMethodConfig request)
          Called when a testrequest is moved in a testcase
 
Methods inherited from class com.eviware.soapui.impl.rest.RestRequest
addNewRepresentation, addProperty, addProperty, addTestPropertyListener, getAccept, getAttachmentPart, getDefinedAttachmentParts, getMediaType, getMethod, getParams, getPath, getProperties, getPropertiesLabel, getProperty, getPropertyAt, getPropertyCount, getPropertyExpansions, getPropertyNames, getPropertyValue, getRepresentations, getRepresentations, getRepresentations, getRequestParts, getResponseContentAsXml, getResponseMediaTypes, getResponseParts, hasEndpoint, hasProperty, hasRequestBody, initIconAnimator, isPostQueryString, moveProperty, propertyChange, removeProperty, removeRepresentation, removeTestPropertyListener, renameProperty, setAccept, setMediaType, setMethod, setPostQueryString, setPropertyValue, submit
 
Methods inherited from class com.eviware.soapui.impl.support.AbstractHttpRequest
addAttachmentsChangeListener, addSubmitListener, attachFile, beforeSave, copyAttachmentsTo, getAttachmentAt, getAttachmentCount, getAttachments, getAttachmentsForPart, getAttachmentsList, getBindAddress, getDomain, getDumpFile, getEncoding, getEndpoint, getIconAnimator, getMaxSize, getPassword, getRequestContent, getRequestHeaders, getResponse, getSslKeystore, getSubmitListeners, getUsername, importAttachment, isEntitizeProperties, isFollowRedirects, isMultipartEnabled, isPrettyPrint, isReadOnly, isRemoveEmptyContent, isStripWhitespaces, removeAttachment, removeAttachmentsChangeListener, removeSubmitListener, setBindAddress, setDomain, setDumpFile, setEncoding, setEndpoint, setEntitizeProperties, setFollowRedirects, setIconAnimator, setMaxSize, setMultipartEnabled, setPassword, setPrettyPrint, setRemoveEmptyContent, setRequestContent, setRequestHeaders, setSslKeystore, setStripWhitespaces, 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, 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.model.ModelItem
getChildren, getDescription, getId, getName, getSettings
 
Methods inherited from interface com.eviware.soapui.support.PropertyChangeNotifier
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 

Field Detail

RESPONSE_PROPERTY

public static final java.lang.String RESPONSE_PROPERTY

STATUS_PROPERTY

public static final java.lang.String STATUS_PROPERTY
Constructor Detail

RestTestRequest

public RestTestRequest(RestResource resource,
                       com.eviware.soapui.config.RestMethodConfig callConfig,
                       HttpTestRequestStep testStep,
                       boolean forLoadTest)
Method Detail

getParent

public ModelItem getParent()
Specified by:
getParent in interface ModelItem
Overrides:
getParent in class AbstractWsdlModelItem<com.eviware.soapui.config.RestMethodConfig>

getTestCase

public WsdlTestCase getTestCase()

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)
Overrides:
setResponse in class RestRequest

assertResponse

public void assertResponse(SubmitContext context)

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

getAssertionStatus

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

getIcon

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

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.RestMethodConfig request)
Called when a testrequest is moved in a testcase

Overrides:
updateConfig in class RestRequest

release

public void release()
Overrides:
release in class RestRequest

getAssertableContent

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

getTestStep

public HttpTestRequestStep getTestStep()
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)

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()

setPath

public void setPath(java.lang.String fullPath)
Overrides:
setPath in class RestRequest

setResource

public void setResource(RestResource restResource)

getResource

public RestResource getResource()
Overrides:
getResource in class RestRequest

resolve

public void resolve(ResolveContext context)
Overrides:
resolve in class AbstractHttpRequest<com.eviware.soapui.config.RestMethodConfig>

getServiceName

public java.lang.String getServiceName()


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