Abstract Class sap.ui.app.MockServerModule: sap/ui/app/MockServer
Class to mock a server
Deprecated API:Since 1.15.1. The mock server code has been moved to sap.ui.core.util - see sap.ui.core.util.MockServer
Experimental API:Since 1.13.0. The mock server is still under construction, so some implementation details can be changed in future.
Constructor Summary
Events borrowed from class sap.ui.base.ManagedObject
Methods borrowed from class sap.ui.base.ManagedObject
addAggregation, addAssociation, applySettings, attachFormatError, attachModelContextChange, attachParseError, attachValidationError, attachValidationSuccess, bindAggregation, bindContext, bindObject, bindProperty, clone, destroy, destroyAggregation, detachFormatError, detachModelContextChange, detachParseError, detachValidationError, detachValidationSuccess, findAggregatedObjects, fireFormatError, fireModelContextChange, fireParseError, fireValidationError, fireValidationSuccess, getAggregation, getAssociation, getBinding, getBindingContext, getBindingInfo, getBindingPath, getEventingParent, getId, getMetadata, getModel, getObjectBinding, getOriginInfo, getParent, getProperty, hasModel, indexOfAggregation, insertAggregation, invalidate, isBound, isInvalidateSuppressed, isTreeBinding, propagateMessages, removeAggregation, removeAllAggregation, removeAllAssociation, removeAssociation, setAggregation, setAssociation, setBindingContext, setModel, setProperty, toString, unbindAggregation, unbindContext, unbindObject, unbindProperty, validateAggregation, validateProperty
Methods borrowed from class sap.ui.base.EventProvider
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.app.MockServer(sId?, mSettings?, oScope?)
Creates a mocked server. This helps to mock all or some backend calls, e.g. for OData/JSON Models or simple XHR calls, without changing the application code. This class can also be used for qunit tests.
Parameters:
{string} | sId? | id for the new server object; generated automatically if no non-empty id is given Note: this can be omitted, no matter whether mSettings will be given or not! |
{object} | mSettings? | optional map/JSON-object with initial property values, aggregated objects etc. for the new object |
{object} | oScope? | scope object for resolving string based type and formatter references in bindings |
- Deprecated:
- Since 1.15.1. The mock server code has been moved to sap.ui.core.util - see sap.ui.core.util.MockServer