org.sakaiproject.entitybroker.mocks
Class EntityProviderMock
java.lang.Object
org.sakaiproject.entitybroker.mocks.EntityProviderMock
- All Implemented Interfaces:
- EntityProvider
- Direct Known Subclasses:
- CoreEntityProviderMock, CRUDableEntityProviderMock, TaggableEntityProviderMock
public class EntityProviderMock
- extends Object
- implements EntityProvider
Stub class to make it easier to test things that use an EntityProvider, will perform
like the actual class so it can be reliably used for testing
NOTE: you will want to
use the CoreEntityProvider stub in almost all cases but this is here for completeness
- Author:
- Aaron Zeckoski (aaronz@vt.edu)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prefix
public String prefix
- Set this to the prefix that this
EntityProvider handles, default value is "testPrefix"
EntityProviderMock
public EntityProviderMock(String prefix)
- TEST Constructor: allows for easy setup of this stub for testing
- Parameters:
prefix -
getEntityPrefix
public String getEntityPrefix()
- Specified by:
getEntityPrefix in interface EntityProvider
Copyright © 2007-2013 Sakai Project. All Rights Reserved.