public class ResolvableEntityProviderMock extends CoreEntityProviderMock implements CoreEntityProvider, Resolvable, CollectionResolvable, Outputable
Resolvable capability, will perform like the
actual class so it can be reliably used for testingMyEntity objectsCollectionResolvable as well, returns 3 MyEntity objects
if no search restrictions, 1 if "stuff" property is set, none if other properties are setidsprefixSEARCH_LOCATION_REFERENCE, SEARCH_TAGS, SEARCH_USER_REFERENCEALL_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| Constructor and Description |
|---|
ResolvableEntityProviderMock(String prefix,
String[] ids)
TEST Constructor: allows for easy setup of this stub for testing
|
| Modifier and Type | Method and Description |
|---|---|
List<?> |
getEntities(EntityReference ref,
Search search) |
Object |
getEntity(EntityReference reference) |
String[] |
getHandledOutputFormats() |
entityExistsgetEntityPrefixclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitentityExistsgetEntityPrefixpublic String[] getHandledOutputFormats()
getHandledOutputFormats in interface Outputablepublic Object getEntity(EntityReference reference)
getEntity in interface Resolvablepublic List<?> getEntities(EntityReference ref, Search search)
getEntities in interface CollectionResolvableCopyright © 2007–2019 Sakai Project. All rights reserved.