org.sakaiproject.entitybroker.mocks
Class ActionsEntityProviderMock
java.lang.Object
org.sakaiproject.entitybroker.mocks.EntityProviderMock
org.sakaiproject.entitybroker.mocks.CRUDableEntityProviderMock
org.sakaiproject.entitybroker.mocks.ActionsEntityProviderMock
- All Implemented Interfaces:
- ActionsExecutable, CollectionResolvable, Createable, CRUDable, Deleteable, Describeable, Inputable, Outputable, Redirectable, Resolvable, RESTful, Sampleable, Saveable, Updateable, CoreEntityProvider, EntityProvider, Formats
public class ActionsEntityProviderMock
- extends CRUDableEntityProviderMock
- implements CoreEntityProvider, ActionsExecutable, Describeable, RESTful
Stub class to make it possible to test the ActionsExecutable capabilities, will perform like the
actual class so it can be reliably used for testing
Will perform all CRUDable operations as well as allowing for internal data output processing
Returns MyEntity objects
Allows for testing Resolvable and CollectionResolvable as well, returns 2 MyEntity objects
if no search restrictions, 1 if "stuff" property is set, none if other properties are set
- Author:
- Aaron Zeckoski (aaron@caret.cam.ac.uk)
| Fields inherited from interface org.sakaiproject.entitybroker.entityprovider.extension.Formats |
ALL_KNOWN_FORMATS, ATOM, ATOM_EXTENSIONS, ATOM_MIME_TYPE, FORM, FORM_EXTENSIONS, FORM_MIME_TYPE, HTML, HTML_EXTENSIONS, HTML_MIME_TYPE, JSON, JSON_EXTENSIONS, JSON_MIME_TYPE, JSONP, JSONP_EXTENSIONS, JSONP_MIME_TYPE, RSS, RSS_EXTENSIONS, RSS_MIME_TYPE, TXT, TXT_EXTENSIONS, TXT_MIME_TYPE, UTF_8, XML, XML_EXTENSIONS, XML_MIME_TYPE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sakaiproject.entitybroker.entityprovider.capabilities.Createable |
createEntity |
| Methods inherited from interface org.sakaiproject.entitybroker.entityprovider.capabilities.Updateable |
updateEntity |
| Methods inherited from interface org.sakaiproject.entitybroker.entityprovider.capabilities.Resolvable |
getEntity |
| Methods inherited from interface org.sakaiproject.entitybroker.entityprovider.capabilities.Deleteable |
deleteEntity |
ActionsEntityProviderMock
public ActionsEntityProviderMock(String prefix,
String[] ids)
doubleCustomAction
public Object doubleCustomAction(EntityView view)
clear
public void clear()
xxxAction
public void xxxAction(EntityReference ref)
xxxAction
public ActionReturn xxxAction(EntityView view)
getHandledOutputFormats
public String[] getHandledOutputFormats()
- Specified by:
getHandledOutputFormats in interface Outputable
getHandledInputFormats
public String[] getHandledInputFormats()
- Specified by:
getHandledInputFormats in interface Inputable
Copyright © 2007-2013 Sakai Project. All Rights Reserved.